Fixed cookie path for menu state

Was saving separate collapsed/open menu state for each directory
This commit is contained in:
Jono Menz 2014-10-03 13:01:32 -06:00
parent 519555838f
commit 8fedcf0c21

View File

@ -25,7 +25,7 @@ document.addEventListener("DOMContentLoaded", function() {
BetterNavigatorStatus.onclick=function(){
BetterNavigator.className = BetterNavigator.className === 'collapsed' ? 'open' : 'collapsed';
//Set cookie to remember state
document.cookie="BetterNavigator=" + BetterNavigator.className;
document.cookie="BetterNavigator=" + BetterNavigator.className + ";path=/";
};
//Restore menu state