Fix save button in the left menu (PE, SSE - disable on start)
This commit is contained in:
parent
1d5ec5d273
commit
9463b08164
|
@ -395,7 +395,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
changeToolbarSaveState: function (state) {
|
changeToolbarSaveState: function (state) {
|
||||||
this.leftMenu.menuFile.getButton('save').setDisabled(state);
|
var btnSave = this.leftMenu.menuFile.getButton('save');
|
||||||
|
btnSave && btnSave.setDisabled(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
|
|
|
@ -308,7 +308,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
changeToolbarSaveState: function (state) {
|
changeToolbarSaveState: function (state) {
|
||||||
this.leftMenu.menuFile.getButton('save').setDisabled(state);
|
var btnSave = this.leftMenu.menuFile.getButton('save');
|
||||||
|
btnSave && btnSave.setDisabled(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
|
|
|
@ -91,7 +91,8 @@ define([
|
||||||
el : $('#fm-btn-save',this.el),
|
el : $('#fm-btn-save',this.el),
|
||||||
action : 'save',
|
action : 'save',
|
||||||
caption : this.btnSaveCaption,
|
caption : this.btnSaveCaption,
|
||||||
canFocused: false
|
canFocused: false,
|
||||||
|
disabled: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.miEdit = new Common.UI.MenuItem({
|
this.miEdit = new Common.UI.MenuItem({
|
||||||
|
|
|
@ -347,7 +347,8 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
changeToolbarSaveState: function (state) {
|
changeToolbarSaveState: function (state) {
|
||||||
this.leftMenu.menuFile.getButton('save').setDisabled(state);
|
var btnSave = this.leftMenu.menuFile.getButton('save');
|
||||||
|
btnSave && btnSave.setDisabled(state);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
|
|
|
@ -78,7 +78,8 @@ define([
|
||||||
el : $('#fm-btn-save',this.el),
|
el : $('#fm-btn-save',this.el),
|
||||||
action : 'save',
|
action : 'save',
|
||||||
caption : this.btnSaveCaption,
|
caption : this.btnSaveCaption,
|
||||||
canFocused: false
|
canFocused: false,
|
||||||
|
disabled: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.miEdit = new Common.UI.MenuItem({
|
this.miEdit = new Common.UI.MenuItem({
|
||||||
|
|
Loading…
Reference in a new issue