Commit 7de38e8b authored by Oleg Korshul's avatar Oleg Korshul

SetOnlyReaderMode bug

parent 9263cd9a
...@@ -655,7 +655,8 @@ ...@@ -655,7 +655,8 @@
asc_docs_api.prototype.SetReaderModeOnly = function() asc_docs_api.prototype.SetReaderModeOnly = function()
{ {
this.isOnlyReaderMode = true; this.isOnlyReaderMode = true;
this.ImageLoader.bIsAsyncLoadDocumentImages = false; if (this.ImageLoader)
this.ImageLoader.bIsAsyncLoadDocumentImages = false;
}; };
asc_docs_api.prototype.IncreaseReaderFontSize = function() asc_docs_api.prototype.IncreaseReaderFontSize = function()
...@@ -7908,6 +7909,9 @@ background-repeat: no-repeat;\ ...@@ -7908,6 +7909,9 @@ background-repeat: no-repeat;\
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw); this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
asc_docs_api.superclass._onEndLoadSdk.call(this); asc_docs_api.superclass._onEndLoadSdk.call(this);
if (this.isOnlyReaderMode)
this.ImageLoader.bIsAsyncLoadDocumentImages = false;
}; };
asc_docs_api.prototype.asc_Recalculate = function(bIsUpdateInterface) asc_docs_api.prototype.asc_Recalculate = function(bIsUpdateInterface)
......
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