Fix save button in the left menu (PE, SSE - disable on start)

This commit is contained in:
Julia Radzhabova 2018-07-25 11:21:18 +03:00
parent 1d5ec5d273
commit 9463b08164
5 changed files with 10 additions and 5 deletions

View file

@ -395,7 +395,8 @@ define([
},
changeToolbarSaveState: function (state) {
this.leftMenu.menuFile.getButton('save').setDisabled(state);
var btnSave = this.leftMenu.menuFile.getButton('save');
btnSave && btnSave.setDisabled(state);
},
/** coauthoring begin **/

View file

@ -308,7 +308,8 @@ define([
},
changeToolbarSaveState: function (state) {
this.leftMenu.menuFile.getButton('save').setDisabled(state);
var btnSave = this.leftMenu.menuFile.getButton('save');
btnSave && btnSave.setDisabled(state);
},
/** coauthoring begin **/

View file

@ -91,7 +91,8 @@ define([
el : $('#fm-btn-save',this.el),
action : 'save',
caption : this.btnSaveCaption,
canFocused: false
canFocused: false,
disabled: true
});
this.miEdit = new Common.UI.MenuItem({

View file

@ -347,7 +347,8 @@ define([
},
changeToolbarSaveState: function (state) {
this.leftMenu.menuFile.getButton('save').setDisabled(state);
var btnSave = this.leftMenu.menuFile.getButton('save');
btnSave && btnSave.setDisabled(state);
},
/** coauthoring begin **/

View file

@ -78,7 +78,8 @@ define([
el : $('#fm-btn-save',this.el),
action : 'save',
caption : this.btnSaveCaption,
canFocused: false
canFocused: false,
disabled: true
});
this.miEdit = new Common.UI.MenuItem({