Commit 3daaa4e4 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

выдаем ConvertationError, если нет Editor.bin

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64547 954022d7-b5bf-4e40-9824-e11837661b57
parent 7eb43208
......@@ -1712,7 +1712,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
case "ok":
var urls = input["data"];
g_oDocumentUrls.init(urls);
t._onOpenCommand(function (response) {t._startOpenDocument(response);}, urls['Editor.bin']);
if(null != urls['Editor.bin']) {
t._onOpenCommand(function (response) {t._startOpenDocument(response);}, urls['Editor.bin']);
} else {
t.handlers.trigger("asc_onError", c_oAscError.ID.ConvertationError,c_oAscError.Level.Critical);
}
break;
case "needparams": break;
case "err":
......
......@@ -527,7 +527,11 @@ asc_docs_api.prototype._coAuthoringInit = function () {
case "ok":
var urls = input["data"];
g_oDocumentUrls.init(urls);
_onOpenCommand(function(){}, {'data': urls['Editor.bin']});
if(null != urls['Editor.bin']) {
_onOpenCommand(function(){}, {'data': urls['Editor.bin']});
} else {
t.asc_fireCallback("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.NoCritical);
}
break;
case "needparams": break;
case "err":
......
......@@ -1506,7 +1506,11 @@ asc_docs_api.prototype._coAuthoringInit = function()
case "ok":
var urls = input["data"];
g_oDocumentUrls.init(urls);
_onOpenCommand(function(){}, {'data': urls['Editor.bin']});
if(null != urls['Editor.bin']) {
_onOpenCommand(function(){}, {'data': urls['Editor.bin']});
} else {
t.asc_fireCallback("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.Critical);
}
break;
case "needparams": break;
case "err":
......
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