Make active highlighting work properly again
authorTom Hughes <tom@compton.nu>
Fri, 7 Sep 2012 08:40:05 +0000 (09:40 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 7 Sep 2012 08:40:05 +0000 (09:40 +0100)
app/assets/javascripts/export.js
app/assets/stylesheets/common.css.scss

index 5debb1b075ce8c6c934c882ba471e910ddb44db7..ae1871b5021203ab5584e0e447ee6d20fd31b1d2 100644 (file)
@@ -55,12 +55,10 @@ function startExport(sidebarHtml) {
   formatChanged();
   setBounds(map.getExtent());
 
-  $("#viewanchor").removeClass("active");
-  $("#exportanchor").addClass("active");
+  $("body").removeClass("site-index").addClass("site-export");
 
   $("#sidebar").one("closed", function () {
-    $("#viewanchor").addClass("active");
-    $("#exportanchor").removeClass("active");
+    $("body").removeClass("site-export").addClass("site-index");
 
     clearBox();
     clearMarker();
index 571bc8c3e1831141917d1460dc5ae73a7a0c8200..b1f494b7ff460cabc00cc78235b2ee8630a20e31 100644 (file)
@@ -331,9 +331,7 @@ h2 {
 body.site-index #tabnav a#viewanchor,
 body.site-edit #tabnav a#editanchor,
 body.changeset-list #tabnav a#historyanchor,
-body.site-export #tabnav a#exportanchor,
-#tabnav a:link.active,
-#tabnav a:visited.active {
+body.site-export #tabnav a#exportanchor {
   border-bottom: 1px solid #aaa;
   background: #9ed485;
   color: #000;