[DE] refactoring

This commit is contained in:
Maxim Kadushkin 2018-03-04 23:23:26 +03:00
parent 794d08ea9c
commit 321a92bf7f
2 changed files with 1 additions and 2 deletions

View file

@ -1512,7 +1512,7 @@ define([
var toolbarView = this.getApplication().getController('Toolbar').getView();
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,
isDisabled = !isModified && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
toolbarView.btnSave.setDisabled(isDisabled);

View file

@ -308,7 +308,6 @@ define([
changeToolbarSaveState: function (state) {
this.leftMenu.menuFile.getButton('save').setDisabled(state);
console.log('save: ' + state);
},
/** coauthoring begin **/