Commit 77df4936 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

AdvancedOptions from ajax to g_fLoadFileContent

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66774 954022d7-b5bf-4e40-9824-e11837661b57
parent 519451d7
......@@ -627,17 +627,14 @@ var editor;
}
}
if (data) {
asc_ajax({
url: data,
dataType: "text",
success: function(result) {
var cp = JSON.parse(result);
cp['encodings'] = getEncodingParams();
t.handlers.trigger("asc_onAdvancedOptions", new asc.asc_CAdvancedOptions(c_oAscAdvancedOptionsID.CSV, cp), t.advancedOptionsAction);
},
error: function() {
g_fLoadFileContent(url, function(result) {
if (null === result) {
t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.Critical);
return;
}
var cp = JSON.parse(result);
cp['encodings'] = getEncodingParams();
t.handlers.trigger("asc_onAdvancedOptions", new asc.asc_CAdvancedOptions(c_oAscAdvancedOptionsID.CSV, cp), t.advancedOptionsAction);
});
} else {
t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.NoCritical);
......
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