diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 2517bb7ce..78d99621c 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -175,9 +175,12 @@ }, leftMenu: { navigation: false/true, - spellcheck: false/true // spellcheck button in sse + spellcheck: false/true // spellcheck button in sse, + mode: false/true // init value for left panel, true - is visible, false - is hidden, used for option "Left panel" on the View Tab } / false / true, // use instead of customization.leftMenu - rightMenu: false/true, // use instead of customization.rightMenu + rightMenu: { + mode: false/true // init value for right panel, true - is visible, false - is hidden, used for option "Right panel" on the View Tab + } / false/true, // use instead of customization.rightMenu statusBar: { textLang: false/true // text language button in de/pe docLang: false/true // document language button in de/pe diff --git a/apps/common/main/lib/controller/LayoutManager.js b/apps/common/main/lib/controller/LayoutManager.js index 8a31ae069..be970633b 100644 --- a/apps/common/main/lib/controller/LayoutManager.js +++ b/apps/common/main/lib/controller/LayoutManager.js @@ -47,14 +47,16 @@ if (Common.UI === undefined) { } Common.UI.LayoutManager = new(function() { - var _config; - var _init = function(config) { + var _config, + _licensed; + var _init = function(config, licensed) { _config = config; + _licensed = licensed; }; var _applyCustomization = function(config, el, prefix) { !config && (config = _config); - if (!config) return; + if (!_licensed || !config) return; for (var name in config) { if(config.hasOwnProperty(name)) { @@ -71,7 +73,7 @@ Common.UI.LayoutManager = new(function() { var _isElementVisible = function(value, config, prefix) { !config && (config = _config); - if (!config) return true; + if (!_licensed || !config) return true; var res = true; for (var name in config) { @@ -89,10 +91,31 @@ Common.UI.LayoutManager = new(function() { return res; }; + var _getInitValue = function(name) { + if (_config) { + var arr = name.split('-'), + i = 0, + obj = _config; + for (i=0; i