[DE] Fix Bug 35757.

This commit is contained in:
Julia Radzhabova 2017-09-04 13:38:48 +03:00
parent 33efca6c3e
commit ea4b7f4366

View file

@ -2199,14 +2199,10 @@ define([
/** coauthoring begin **/
onCollaborativeChanges: function () {
if (this._state.hasCollaborativeChanges) return;
if (!this.btnSave.rendered) {
if (!this.btnSave.rendered || this._state.previewmode) {
this.needShowSynchTip = true;
return;
}
if (this._state.previewmode) {
if (!DE.getController('Main')._state.fastCoauth) this.needShowSynchTip = true;
return;
}
this._state.hasCollaborativeChanges = true;
var iconEl = $('.icon', this.btnSave.cmpEl);