Commit e20a642e authored by Oleg.Korshul's avatar Oleg.Korshul

load images in changes

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66439 954022d7-b5bf-4e40-9824-e11837661b57
parent d352112d
...@@ -35,6 +35,13 @@ ...@@ -35,6 +35,13 @@
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data) window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{ {
g_oDocumentUrls.documentUrl = _url; g_oDocumentUrls.documentUrl = _url;
if (g_oDocumentUrls.documentUrl.indexOf("file:") != 0)
{
if (g_oDocumentUrls.documentUrl.indexOf("/") != 0)
g_oDocumentUrls.documentUrl = "/" + g_oDocumentUrls.documentUrl;
g_oDocumentUrls.documentUrl = "file://" + g_oDocumentUrls.documentUrl;
}
window["Asc"]["editor"]._OfflineAppDocumentEndLoad(_data); window["Asc"]["editor"]._OfflineAppDocumentEndLoad(_data);
}; };
......
...@@ -18,6 +18,13 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data) ...@@ -18,6 +18,13 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data) window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{ {
g_oDocumentUrls.documentUrl = _url; g_oDocumentUrls.documentUrl = _url;
if (g_oDocumentUrls.documentUrl.indexOf("file:") != 0)
{
if (g_oDocumentUrls.documentUrl.indexOf("/") != 0)
g_oDocumentUrls.documentUrl = "/" + g_oDocumentUrls.documentUrl;
g_oDocumentUrls.documentUrl = "file://" + g_oDocumentUrls.documentUrl;
}
editor._OfflineAppDocumentEndLoad(_url, _data); editor._OfflineAppDocumentEndLoad(_url, _data);
}; };
......
...@@ -24,6 +24,13 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data) ...@@ -24,6 +24,13 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data) window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{ {
g_oDocumentUrls.documentUrl = _url; g_oDocumentUrls.documentUrl = _url;
if (g_oDocumentUrls.documentUrl.indexOf("file:") != 0)
{
if (g_oDocumentUrls.documentUrl.indexOf("/") != 0)
g_oDocumentUrls.documentUrl = "/" + g_oDocumentUrls.documentUrl;
g_oDocumentUrls.documentUrl = "file://" + g_oDocumentUrls.documentUrl;
}
editor._OfflineAppDocumentEndLoad(_url, _data); editor._OfflineAppDocumentEndLoad(_url, _data);
}; };
......
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