Don't close signature settings when document has been signed.

This commit is contained in:
Julia Radzhabova 2017-11-10 17:11:58 +03:00
parent 21fe777282
commit e17fa5ffea
3 changed files with 12 additions and 6 deletions

View file

@ -327,9 +327,11 @@ define([
if (this._state.DisabledEditing != disable) {
this._state.DisabledEditing = disable;
disable && DE.getController('RightMenu').getView('RightMenu').clearSelection();
var rightMenuController = DE.getController('RightMenu');
if (disable && rightMenuController.rightmenu.GetActivePane() !== 'id-signature-settings')
rightMenuController.rightmenu.clearSelection();
rightMenuController.SetDisabled(disable, false, true);
DE.getController('Toolbar').DisableToolbar(disable, disable);
DE.getController('RightMenu').SetDisabled(disable, false, true);
DE.getController('Statusbar').getView('Statusbar').SetDisabled(disable);
DE.getController('Common.Controllers.ReviewChanges').SetDisabled(disable);
DE.getController('DocumentHolder').getView().SetDisabled(disable);

View file

@ -245,8 +245,10 @@ define([
if (this._state.DisabledEditing != disable) {
this._state.DisabledEditing = disable;
disable && PE.getController('RightMenu').getView('RightMenu').clearSelection();
PE.getController('RightMenu').SetDisabled(disable, true);
var rightMenuController = PE.getController('RightMenu');
if (disable && rightMenuController.rightmenu.GetActivePane() !== 'id-signature-settings')
rightMenuController.rightmenu.clearSelection();
rightMenuController.SetDisabled(disable, true);
PE.getController('Toolbar').DisableToolbar(disable, disable);
PE.getController('Statusbar').getView('Statusbar').SetDisabled(disable);
PE.getController('Common.Controllers.ReviewChanges').SetDisabled(disable);

View file

@ -327,9 +327,11 @@ define([
if (this._state.DisabledEditing != disable) {
this._state.DisabledEditing = disable;
disable && SSE.getController('RightMenu').getView('RightMenu').clearSelection();
var rightMenuController = SSE.getController('RightMenu');
if (disable && rightMenuController.rightmenu.GetActivePane() !== 'id-signature-settings')
rightMenuController.rightmenu.clearSelection();
rightMenuController.SetDisabled(disable, true);
SSE.getController('Toolbar').DisableToolbar(disable, disable);
SSE.getController('RightMenu').SetDisabled(disable, true);
SSE.getController('Common.Controllers.ReviewChanges').SetDisabled(disable);
SSE.getController('DocumentHolder').SetDisabled(disable);
SSE.getController('Statusbar').SetDisabled(disable);