Add parameters to config for hiding toolbar, left menu, right menu.
This commit is contained in:
parent
c083753f78
commit
1058d48f46
|
@ -105,7 +105,10 @@
|
|||
text: 'Go to London'
|
||||
},
|
||||
chat: false,
|
||||
comments: false
|
||||
comments: false,
|
||||
leftMenu: true,
|
||||
rightMenu: true,
|
||||
toolbar: true
|
||||
},
|
||||
plugins: {
|
||||
url: '../../../../sdkjs-plugins/',
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue