mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-27 20:36:08 +08:00
[PE] Strict co-editing: lock themes control when other users changed theme.
This commit is contained in:
@ -697,11 +697,11 @@ define([
|
||||
},
|
||||
|
||||
onApiLockDocumentTheme: function() {
|
||||
this.toolbar.lockToolbar(PE.enumLock.themeLock, true, {array: [this.toolbar.btnColorSchemas]});
|
||||
this.toolbar.lockToolbar(PE.enumLock.themeLock, true, {array: [this.toolbar.btnColorSchemas, this.toolbar.listTheme]});
|
||||
},
|
||||
|
||||
onApiUnLockDocumentTheme: function() {
|
||||
this.toolbar.lockToolbar(PE.enumLock.themeLock, false, {array: [this.toolbar.btnColorSchemas]});
|
||||
this.toolbar.lockToolbar(PE.enumLock.themeLock, false, {array: [this.toolbar.btnColorSchemas, this.toolbar.listTheme]});
|
||||
},
|
||||
|
||||
onApiCoAuthoringDisconnect: function(disableDownload) {
|
||||
|
||||
@ -855,7 +855,7 @@ define([
|
||||
enableKeyEvents: true,
|
||||
itemHeight : 38,
|
||||
hint: this.tipSlideTheme,
|
||||
lock: [_set.lostConnect, _set.noSlides],
|
||||
lock: [_set.themeLock, _set.lostConnect, _set.noSlides],
|
||||
beforeOpenHandler: function(e) {
|
||||
var cmp = this,
|
||||
menu = cmp.openButton.menu,
|
||||
|
||||
Reference in New Issue
Block a user