mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 18:22:51 +08:00
[DE] Fix lock for hyphenation button
This commit is contained in:
committed by
Ilya Kirillov
parent
ed6e5871e0
commit
3f134f11a7
@ -935,14 +935,14 @@ define([
|
||||
|
||||
onApiLockDocumentProps: function() {
|
||||
if (this._state.lock_doc!==true) {
|
||||
this.toolbar.lockToolbar(Common.enumLock.docPropsLock, true, {array: [this.toolbar.btnPageOrient, this.toolbar.btnPageSize, this.toolbar.btnPageMargins, this.toolbar.btnColumns, this.toolbar.btnLineNumbers]});
|
||||
this.toolbar.lockToolbar(Common.enumLock.docPropsLock, true, {array: [this.toolbar.btnPageOrient, this.toolbar.btnPageSize, this.toolbar.btnPageMargins, this.toolbar.btnColumns, this.toolbar.btnLineNumbers, this.toolbar.btnHyphenation]});
|
||||
if (this._state.activated) this._state.lock_doc = true;
|
||||
}
|
||||
},
|
||||
|
||||
onApiUnLockDocumentProps: function() {
|
||||
if (this._state.lock_doc!==false) {
|
||||
this.toolbar.lockToolbar(Common.enumLock.docPropsLock, false, {array: [this.toolbar.btnPageOrient, this.toolbar.btnPageSize, this.toolbar.btnPageMargins, this.toolbar.btnColumns, this.toolbar.btnLineNumbers]});
|
||||
this.toolbar.lockToolbar(Common.enumLock.docPropsLock, false, {array: [this.toolbar.btnPageOrient, this.toolbar.btnPageSize, this.toolbar.btnPageMargins, this.toolbar.btnColumns, this.toolbar.btnLineNumbers, this.toolbar.btnHyphenation]});
|
||||
if (this._state.activated) this._state.lock_doc = false;
|
||||
}
|
||||
},
|
||||
|
||||
@ -1329,7 +1329,7 @@ define([
|
||||
id: 'tlbtn-line-hyphenation',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-hyphenation',
|
||||
lock: [_set.docPropsLock, _set.inImagePara, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart, _set.docLockView, _set.docLockForms, _set.docLockComments],
|
||||
lock: [_set.docPropsLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart, _set.docLockView, _set.docLockForms, _set.docLockComments],
|
||||
caption: this.capBtnHyphenation,
|
||||
menu: new Common.UI.Menu({
|
||||
cls: 'ppm-toolbar',
|
||||
|
||||
Reference in New Issue
Block a user