diff --git a/src/c3nav/editor/static/editor/css/editor.css b/src/c3nav/editor/static/editor/css/editor.css index b9016909..6880ce7a 100644 --- a/src/c3nav/editor/static/editor/css/editor.css +++ b/src/c3nav/editor/static/editor/css/editor.css @@ -41,11 +41,8 @@ nav.navbar { width: 350px; height: 100%; overflow: auto; - background-color:#ffffff; z-index:2; - background-image:url('/static/img/loader.gif'); - background-repeat:no-repeat; - background-position:center; + background: #ffffff url('/static/img/loader.gif') no-repeat center; transition: width 300ms; -webkit-transition: width 300ms; } @@ -81,8 +78,8 @@ a.list-group-item .badge { } #mapeditlist legend .btn { - padding-left:5.5px; - padding-right:5.5px; + padding-left:6px; + padding-right:6px; } legend { margin: 0; diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index dbdcddba..63323d25 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -40,7 +40,7 @@ editor = { editor.init_sidebar(); editor.get_sources(); - bounds = [[0.0, 0.0], [240.0, 400.0]]; + var bounds = [[0.0, 0.0], [240.0, 400.0]]; editor.map.setMaxBounds(bounds); editor.map.fitBounds(bounds, {padding: [30, 50]}); }, @@ -80,7 +80,6 @@ editor = { }, sidebar_get: function(location) { // load a new page into the sidebar using a GET request - var location_path = editor.get_location_path(); if ($('#sidebarcontent').html() !== '') { history.pushState({}, '', location); } @@ -99,15 +98,15 @@ editor = { var content = $(data); $('#sidebar').removeClass('loading').find('.content').html(content); - redirect = $('span[data-redirect]'); + var redirect = $('span[data-redirect]'); if (redirect.length) { editor.sidebar_get(redirect.attr('data-redirect')); return; } sections = $('[data-sections]'); - $('body').toggleClass('map-enabled', sections.length); if (sections.length) { + $('body').addClass('map-enabled'); var sections = sections.find('a'); editor._section_control.clearSections(); for(var i=0;i