[DE] refactoring
This commit is contained in:
parent
794d08ea9c
commit
321a92bf7f
|
@ -1512,7 +1512,7 @@ define([
|
||||||
var toolbarView = this.getApplication().getController('Toolbar').getView();
|
var toolbarView = this.getApplication().getController('Toolbar').getView();
|
||||||
|
|
||||||
if (toolbarView && !toolbarView._state.previewmode) {
|
if (toolbarView && !toolbarView._state.previewmode) {
|
||||||
var isSyncButton = $('.icon', toolbarView.btnSave.cmpEl).hasClass('btn-synch'),
|
var isSyncButton = toolbarView.btnSave.$icon.hasClass('btn-synch'),
|
||||||
forcesave = this.appOptions.forcesave,
|
forcesave = this.appOptions.forcesave,
|
||||||
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
||||||
toolbarView.btnSave.setDisabled(isDisabled);
|
toolbarView.btnSave.setDisabled(isDisabled);
|
||||||
|
|
|
@ -308,7 +308,6 @@ define([
|
||||||
|
|
||||||
changeToolbarSaveState: function (state) {
|
changeToolbarSaveState: function (state) {
|
||||||
this.leftMenu.menuFile.getButton('save').setDisabled(state);
|
this.leftMenu.menuFile.getButton('save').setDisabled(state);
|
||||||
console.log('save: ' + state);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
|
|
Loading…
Reference in a new issue