diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index b1a993017824..64ae021e7b32 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -67,7 +67,7 @@ L.Control.UIManager = L.Control.extend({ }, shouldUseNotebookbarMode: function() { - var forceCompact = this.getSavedStateOrDefault('CompactMode', null); + var forceCompact = this.getSavedStateOrDefault('compactMode', null); return (window.userInterfaceMode === 'notebookbar' && forceCompact === null) || forceCompact === false; }, @@ -543,7 +543,7 @@ L.Control.UIManager = L.Control.extend({ break; } - this.setSavedState('CompactMode', uiMode.mode === 'classic'); + this.setSavedState('compactMode', uiMode.mode === 'classic'); this.initializeSidebar(); this.insertCustomButtons(); @@ -1370,15 +1370,15 @@ L.Control.UIManager = L.Control.extend({ }, setSavedState: function(name, state) { - var docType = (name === 'CompactMode') ? null : this.map.getDocType(); + var docType = (name === 'compactMode') ? null : this.map.getDocType(); if (window.isLocalStorageAllowed) localStorage.setItem('UIDefaults_' + docType + '_' + name, state); }, getSavedStateOrDefault: function(name, forcedDefault) { var retval = forcedDefault !== undefined ? forcedDefault : true; - // we request CompactMode very early, no info about doctype so unify all the calls - var docType = (name === 'CompactMode') ? null : this.map.getDocType(); + // we request compactMode very early, no info about doctype so unify all the calls + var docType = (name === 'compactMode') ? null : this.map.getDocType(); var state = null; if (window.isLocalStorageAllowed) state = localStorage.getItem('UIDefaults_' + docType + '_' + name);