Add parameters to config for hiding toolbar, left menu, right menu.

This commit is contained in:
Julia Radzhabova 2016-10-21 16:47:46 +03:00
parent c083753f78
commit 1058d48f46
7 changed files with 19 additions and 7 deletions

View file

@ -105,7 +105,10 @@
text: 'Go to London'
},
chat: false,
comments: false
comments: false,
leftMenu: true,
rightMenu: true,
toolbar: true
},
plugins: {
url: '../../../../sdkjs-plugins/',

View file

@ -61,7 +61,10 @@ define([
var mapCustomizationElements = {
about: 'button#left-btn-about',
feedback: 'button#left-btn-support',
goback: '#fm-btn-back > a, #header-back > div'
goback: '#fm-btn-back > a, #header-back > div',
toolbar: '#viewport #toolbar',
leftMenu: '#viewport #left-menu',
rightMenu: '#viewport #right-menu'
};
Common.localStorage.setId('text');

View file

@ -309,7 +309,7 @@ define([
showMenu: function(menu, opts) {
var re = /^(\w+):?(\w*)$/.exec(menu);
if (re[1] == 'file') {
if (re[1] == 'file' && this.btnFile.isVisible() ) {
if (!this.btnFile.pressed) {
this.btnFile.toggle(true);
// this.onBtnMenuClick(this.btnFile);

View file

@ -59,7 +59,10 @@ define([
var mapCustomizationElements = {
about: 'button#left-btn-about',
feedback: 'button#left-btn-support',
goback: '#fm-btn-back > a, #header-back > div'
goback: '#fm-btn-back > a, #header-back > div',
toolbar: '#viewport #toolbar',
leftMenu: '#viewport #left-menu',
rightMenu: '#viewport #right-menu'
};
Common.localStorage.setId('presentation');

View file

@ -330,7 +330,7 @@ define([
showMenu: function(menu) {
var re = /^(\w+):?(\w*)$/.exec(menu);
if (re[1] == 'file') {
if (re[1] == 'file' && this.btnFile.isVisible()) {
if (!this.btnFile.pressed) {
this.btnFile.toggle(true);
// this.onBtnMenuClick(this.btnFile);

View file

@ -65,7 +65,10 @@ define([
var mapCustomizationElements = {
about: 'button#left-btn-about',
feedback: 'button#left-btn-support',
goback: '#fm-btn-back > a, #header-back > div'
goback: '#fm-btn-back > a, #header-back > div',
toolbar: '#viewport #toolbar',
leftMenu: '#viewport #left-menu',
rightMenu: '#viewport #right-menu'
};
Common.localStorage.setId('table');

View file

@ -294,7 +294,7 @@ define([
showMenu: function(menu) {
var re = /^(\w+):?(\w*)$/.exec(menu);
if (re[1] == 'file') {
if (re[1] == 'file' && this.btnFile.isVisible()) {
if (!this.btnFile.pressed) {
this.btnFile.toggle(true);
this.btnFile.$el.focus();