Make active highlighting work properly again

This commit is contained in:
Tom Hughes 2012-09-07 09:40:05 +01:00
parent 8ec415b060
commit b507f6c887
2 changed files with 3 additions and 7 deletions

View 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();

View 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;