[PE] Fix view tab
This commit is contained in:
parent
b20b3ceff5
commit
d1d6d2eea6
|
@ -78,6 +78,7 @@ define([
|
||||||
Common.UI.BaseView.prototype.initialize.call(this);
|
Common.UI.BaseView.prototype.initialize.call(this);
|
||||||
this.toolbar = options.toolbar;
|
this.toolbar = options.toolbar;
|
||||||
this.appConfig = options.mode;
|
this.appConfig = options.mode;
|
||||||
|
var _set = PE.enumLock;
|
||||||
|
|
||||||
this.lockedControls = [];
|
this.lockedControls = [];
|
||||||
|
|
||||||
|
@ -89,7 +90,7 @@ define([
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'min-width: 55px;',
|
menuStyle: 'min-width: 55px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
//lock: [_set.coAuth, _set.lostConnect, _set.editCell],
|
lock: [_set.disableOnStart],
|
||||||
data: [
|
data: [
|
||||||
{ displayValue: "50%", value: 50 },
|
{ displayValue: "50%", value: 50 },
|
||||||
{ displayValue: "75%", value: 75 },
|
{ displayValue: "75%", value: 75 },
|
||||||
|
@ -113,6 +114,7 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-ic-zoomtoslide',
|
iconCls: 'toolbar__icon btn-ic-zoomtoslide',
|
||||||
caption: this.textFitToSlide,
|
caption: this.textFitToSlide,
|
||||||
|
lock: [_set.disableOnStart],
|
||||||
toggleGroup: 'view-zoom',
|
toggleGroup: 'view-zoom',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -126,6 +128,7 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-ic-zoomtowidth',
|
iconCls: 'toolbar__icon btn-ic-zoomtowidth',
|
||||||
caption: this.textFitToWidth,
|
caption: this.textFitToWidth,
|
||||||
|
lock: [_set.disableOnStart],
|
||||||
toggleGroup: 'view-zoom',
|
toggleGroup: 'view-zoom',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -139,6 +142,7 @@ define([
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon day',
|
iconCls: 'toolbar__icon day',
|
||||||
caption: this.textInterfaceTheme,
|
caption: this.textInterfaceTheme,
|
||||||
|
lock: [_set.disableOnStart],
|
||||||
menu: true,
|
menu: true,
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'bottom',
|
||||||
|
@ -150,7 +154,7 @@ define([
|
||||||
el: $host.findById('#slot-chk-statusbar'),
|
el: $host.findById('#slot-chk-statusbar'),
|
||||||
labelText: this.textStatusBar,
|
labelText: this.textStatusBar,
|
||||||
value: !Common.localStorage.getBool("pe-hidden-status"),
|
value: !Common.localStorage.getBool("pe-hidden-status"),
|
||||||
//lock: [_set.lostConnect, _set.coAuth, _set.editCell],
|
lock: [_set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
|
@ -161,7 +165,7 @@ define([
|
||||||
el: $host.findById('#slot-chk-toolbar'),
|
el: $host.findById('#slot-chk-toolbar'),
|
||||||
labelText: this.textAlwaysShowToolbar,
|
labelText: this.textAlwaysShowToolbar,
|
||||||
value: !options.compactToolbar,
|
value: !options.compactToolbar,
|
||||||
//lock: [_set.lostConnect, _set.coAuth, _set.editCell],
|
lock: [_set.disableOnStart],
|
||||||
dataHint : '1',
|
dataHint : '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
|
@ -172,7 +176,7 @@ define([
|
||||||
el: $host.findById('#slot-chk-rulers'),
|
el: $host.findById('#slot-chk-rulers'),
|
||||||
labelText: this.textRulers,
|
labelText: this.textRulers,
|
||||||
value: !Common.Utils.InternalSettings.get("pe-hidden-rulers"),
|
value: !Common.Utils.InternalSettings.get("pe-hidden-rulers"),
|
||||||
//lock: [_set.lostConnect, _set.coAuth, _set.editCell],
|
lock: [_set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
|
@ -183,7 +187,7 @@ define([
|
||||||
el: $host.findById('#slot-chk-notes'),
|
el: $host.findById('#slot-chk-notes'),
|
||||||
labelText: this.textNotes,
|
labelText: this.textNotes,
|
||||||
value: !Common.localStorage.getBool('pe-hidden-notes', this.appConfig.customization && this.appConfig.customization.hideNotes===true),
|
value: !Common.localStorage.getBool('pe-hidden-notes', this.appConfig.customization && this.appConfig.customization.hideNotes===true),
|
||||||
//lock: [_set.lostConnect, _set.coAuth, _set.editCell],
|
lock: [_set.disableOnStart],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'small'
|
dataHintOffset: 'small'
|
||||||
|
|
Loading…
Reference in a new issue