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; ...@@ -627,17 +627,14 @@ var editor;
} }
} }
if (data) { if (data) {
asc_ajax({ g_fLoadFileContent(url, function(result) {
url: data, if (null === result) {
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() {
t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.Critical); 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 { } else {
t.handlers.trigger("asc_onError", c_oAscError.ID.Unknown, c_oAscError.Level.NoCritical); 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