Commit 1803333a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

JSZipUtils -> require('jsziputils')

JSZip -> require('jszip')

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62617 954022d7-b5bf-4e40-9824-e11837661b57
parent 944e0baa
......@@ -81,7 +81,7 @@ function g_fOpenFileCommand (data, Signature, callback) {
}
});
if (null != openData['urlchanges']) {
JSZipUtils.getBinaryContent(g_sResourceServiceLocalUrl + openData['urlchanges'], function(err, data) {
require('jsziputils').getBinaryContent(g_sResourceServiceLocalUrl + openData['urlchanges'], function(err, data) {
bEndLoadChanges = true;
if(err) {
bError = true;
......@@ -89,7 +89,7 @@ function g_fOpenFileCommand (data, Signature, callback) {
return;
}
var oZipFile = new JSZip(data);
var oZipFile = new (require('jszip'))(data);
oResult.changes = [];
for(var i in oZipFile.files)
oResult.changes.push(JSON.parse(oZipFile.file(i).asText()))
......
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