Commit 171452d3 authored by Oleg.Korshul's avatar Oleg.Korshul

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49291 954022d7-b5bf-4e40-9824-e11837661b57
parent 6e39f8a5
......@@ -5863,7 +5863,9 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
{
this.isLoadImagesCustom = false;
this.loadCustomImageMap = null;
this.SyncLoadImages_callback();
if (!this.ImageLoader.bIsAsyncLoadDocumentImages)
this.SyncLoadImages_callback();
}
}
}
......@@ -6084,8 +6086,20 @@ asc_docs_api.prototype.SyncLoadImages = function(_images)
this.loadCustomImageMap = _images;
var _count = 0;
for (var i in this.loadCustomImageMap)
var _loaded = this.ImageLoader.map_image_index;
var _new_len = this.loadCustomImageMap.length;
for (var i = 0; i < _new_len; i++)
{
if (undefined !== _loaded[this.loadCustomImageMap[i]])
{
this.loadCustomImageMap.splice(i, 1);
i--;
_new_len--;
continue;
}
++_count;
}
if (_count > 0)
{
......
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