diff --git a/browser/src/control/Control.UIManager.js b/browser/src/control/Control.UIManager.js index 778c24ebf..0f1d86dc0 100644 --- a/browser/src/control/Control.UIManager.js +++ b/browser/src/control/Control.UIManager.js @@ -66,7 +66,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; }, @@ -542,7 +542,7 @@ L.Control.UIManager = L.Control.extend({ break; } - this.setSavedState('CompactMode', uiMode.mode === 'classic'); + this.setSavedState('compactMode', uiMode.mode === 'classic'); this.initializeSidebar(); this.insertCustomButtons(); @@ -1488,15 +1488,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);