Commit d80a1246 authored by Alexander.Trofimov's avatar Alexander.Trofimov

no changes - no save

parent 57caf78e
...@@ -316,7 +316,8 @@ var editor; ...@@ -316,7 +316,8 @@ var editor;
}; };
spreadsheet_api.prototype.asc_Save = function(isAutoSave) { spreadsheet_api.prototype.asc_Save = function(isAutoSave) {
if (!this.canSave || this.isChartEditor || c_oAscAdvancedOptionsAction.None !== this.advancedOptionsAction || this.isLongAction()) { if (!this.canSave || this.isChartEditor || c_oAscAdvancedOptionsAction.None !== this.advancedOptionsAction ||
this.isLongAction() || !this.asc_isDocumentCanSave()) {
return; return;
} }
......
...@@ -2039,7 +2039,7 @@ background-repeat: no-repeat;\ ...@@ -2039,7 +2039,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.asc_Save = function(isAutoSave) asc_docs_api.prototype.asc_Save = function(isAutoSave)
{ {
this.IsUserSave = !isAutoSave; this.IsUserSave = !isAutoSave;
if (true === this.canSave && !this.isLongAction()) if (true === this.canSave && !this.isLongAction() && this.asc_isDocumentCanSave())
{ {
this.canSave = false; this.canSave = false;
......
...@@ -2117,7 +2117,7 @@ background-repeat: no-repeat;\ ...@@ -2117,7 +2117,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.asc_Save = function(isAutoSave, isUndoRequest) asc_docs_api.prototype.asc_Save = function(isAutoSave, isUndoRequest)
{ {
this.IsUserSave = !isAutoSave; this.IsUserSave = !isAutoSave;
if (true === this.canSave && !this.isLongAction()) if (true === this.canSave && !this.isLongAction() && this.asc_isDocumentCanSave())
{ {
this.canSave = false; this.canSave = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment