From de7f1e975436cb28df318becb754053a13d1e842 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Mon, 11 Feb 2013 19:18:42 +0100 Subject: [PATCH] fix leaflet layer selector not being usable with sidebar collapsed --- code/boot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/boot.js b/code/boot.js index 49e0705f..57e6ebe9 100644 --- a/code/boot.js +++ b/code/boot.js @@ -174,14 +174,14 @@ window.setupPlayerStat = function() { window.setupSidebarToggle = function() { $('#sidebartoggle').on('click', function() { var toggle = $('#sidebartoggle'); - var sidebar = $('#sidebar'); + var sidebar = $('#scrollwrapper'); if(sidebar.is(':visible')) { - sidebar.hide(); + sidebar.hide().css('z-index', 1); $('.leaflet-right').css('margin-right','0'); toggle.html(''); toggle.css('right', '0'); } else { - sidebar.show(); + sidebar.css('z-index', 1001).show(); $('.leaflet-right').css('margin-right', SIDEBAR_WIDTH+1+'px'); toggle.html(''); toggle.css('right', SIDEBAR_WIDTH+1+'px');