mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 20:20:30 +08:00
Merge pull request 'fix/bugfix' (#728) from fix/bugfix into release/v9.1.0
This commit is contained in:
@ -984,7 +984,7 @@ define([
|
||||
}
|
||||
this.submitedTooltip.show();
|
||||
}
|
||||
this.api.asc_setRestriction(Asc.c_oAscRestrictionType.View);
|
||||
this.api.asc_setRestriction(Asc.c_oAscRestrictionType.View, this.api.asc_getRestrictionSettings());
|
||||
this.onApiServerDisconnect(true);
|
||||
} else
|
||||
this.disableFillingForms(false);
|
||||
|
||||
@ -1963,7 +1963,7 @@ define([
|
||||
} else if (mode==='review') {
|
||||
Common.NotificationCenter.trigger('reviewchanges:turn', true);
|
||||
}
|
||||
this.api.asc_setRestriction(mode==='view' ? Asc.c_oAscRestrictionType.View : mode==='view-form' ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None);
|
||||
this.api.asc_setRestriction(mode==='view' ? Asc.c_oAscRestrictionType.View : mode==='view-form' ? Asc.c_oAscRestrictionType.OnlyForms : Asc.c_oAscRestrictionType.None, this.api.asc_getRestrictionSettings());
|
||||
}
|
||||
(!inViewMode || force) && Common.NotificationCenter.trigger('doc:mode-changed', mode);
|
||||
},
|
||||
|
||||
@ -666,6 +666,7 @@ define([
|
||||
id: 'id-toolbar-btn-direction',
|
||||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-ltr',
|
||||
icls: 'btn-ltr',
|
||||
action: 'text-direction',
|
||||
dirRtl: false,
|
||||
lock: [_set.noParagraphSelected, _set.paragraphLock, _set.headerLock, _set.richEditLock, _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart, _set.docLockViewPara, _set.docLockForms, _set.docLockCommentsPara, _set.fixedForm, _set.viewMode],
|
||||
|
||||
@ -692,6 +692,7 @@ define([
|
||||
id: 'id-toolbar-btn-direction',
|
||||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-ltr',
|
||||
icls: 'btn-ltr',
|
||||
action: 'text-direction',
|
||||
dirRtl: false,
|
||||
lock: [_set.paragraphLock, _set.lostConnect, _set.noTextSelected, _set.inCheckForm, _set.disableOnStart, _set.inAnnotation],
|
||||
|
||||
@ -914,6 +914,7 @@ define([
|
||||
id: 'id-toolbar-btn-direction',
|
||||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-ltr',
|
||||
icls: 'btn-ltr',
|
||||
action: 'text-direction',
|
||||
dirRtl: false,
|
||||
lock: [_set.slideDeleted, _set.paragraphLock, _set.lostConnect, _set.noSlides, _set.noParagraphSelected, _set.noParagraphObject],
|
||||
|
||||
@ -799,6 +799,7 @@ define([
|
||||
id: 'id-toolbar-btn-direction',
|
||||
cls: 'btn-toolbar',
|
||||
iconCls: 'toolbar__icon btn-ltr',
|
||||
icls: 'btn-ltr',
|
||||
action: 'text-direction',
|
||||
lock: [_set.editCell, _set.selChart, _set.selImage, _set.selSlicer, _set.lostConnect, _set.coAuth, _set.coAuthText, _set.wsLockFormat, _set.userProtected],
|
||||
menu: new Common.UI.Menu({
|
||||
|
||||
Reference in New Issue
Block a user