diff --git a/apps/spreadsheeteditor/main/app/controller/WBProtection.js b/apps/spreadsheeteditor/main/app/controller/WBProtection.js index 669ee7f03..e4dffaee0 100644 --- a/apps/spreadsheeteditor/main/app/controller/WBProtection.js +++ b/apps/spreadsheeteditor/main/app/controller/WBProtection.js @@ -273,6 +273,7 @@ define([ var props = me.getWSProps(); me.view.btnProtectSheet.toggle(props.wsLock, true); //current sheet Common.Utils.lockControls(SSE.enumLock['Objects'], props.wsProps['Objects'], { array: [me.view.chLockedText, me.view.chLockedShape]}); + Common.Utils.lockControls(SSE.enumLock.wsLock, props.wsLock, { array: [me.view.btnAllowRanges]}); }); }, @@ -285,6 +286,7 @@ define([ this.view.btnProtectSheet.toggle(props.wsLock, true); //current sheet Common.Utils.lockControls(SSE.enumLock['Objects'], props.wsProps['Objects'], { array: [this.view.chLockedText, this.view.chLockedShape]}); + Common.Utils.lockControls(SSE.enumLock.wsLock, props.wsLock, { array: [this.view.btnAllowRanges]}); Common.NotificationCenter.trigger('protect:wslock', props); }, diff --git a/apps/spreadsheeteditor/main/app/view/WBProtection.js b/apps/spreadsheeteditor/main/app/view/WBProtection.js index bac5bad62..da36a529a 100644 --- a/apps/spreadsheeteditor/main/app/view/WBProtection.js +++ b/apps/spreadsheeteditor/main/app/view/WBProtection.js @@ -133,7 +133,7 @@ define([ cls: 'btn-toolbar x-huge icon-top', iconCls: 'toolbar__icon allow-edit-ranges', caption: this.txtAllowRanges, - lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth] + lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock] }); this.lockedControls.push(this.btnAllowRanges);