Commit e31de797 authored by Alexey Golubev's avatar Alexey Golubev

Merge branch 'hotfix/v4.2.2'

parents 0b595593 d727e4ed
......@@ -2737,21 +2737,21 @@ CUserCacheColor.prototype.init = function(nColor) {
return;
}
if (window["AscDesktopEditor"])
if (window["AscDesktopEditor"] && window["local_load_add"])
{
var _context = { "completeLoad" : function() { return callback(); } };
window["local_load_add"](_context, "sdk-all-from-min", url);
var _ret_param = window["AscDesktopEditor"]["LoadJS"](url);
if (2 != _ret_param)
window["local_load_remove"](url);
if (_ret_param == 1)
{
setTimeout(callback, 1);
return;
}
else if (_ret_param == 2)
{
window["asc_desktop_localModuleId"] = "sdk-all.js";
window["asc_desktop_context"] = { "completeLoad" : function() { return callback(); } };
return;
}
}
var script = document.createElement('script');
script.type = 'text/javascript';
......
......@@ -271,3 +271,4 @@ Asc['asc_docs_api'].prototype.asc_setAdvancedOptions = function(idOption, option
window["AscDesktopEditor"]["SetAdvancedOptions"](_param);
}
};
Asc['asc_docs_api'].prototype["asc_setAdvancedOptions"] = Asc['asc_docs_api'].prototype.asc_setAdvancedOptions;
\ No newline at end of file
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