|
|
@ -805,12 +805,11 @@ define([
|
|
|
|
var x2tConvertData = function (x2t, data, filename, extension) {
|
|
|
|
var x2tConvertData = function (x2t, data, filename, extension) {
|
|
|
|
var convertedContent;
|
|
|
|
var convertedContent;
|
|
|
|
if (filename.endsWith(".ods")) {
|
|
|
|
if (filename.endsWith(".ods")) {
|
|
|
|
convertedContent = x2tConvertDataInternal(x2t, new Uint8Array(data), "test.ods", "xlsx");
|
|
|
|
convertedContent = x2tConvertDataInternal(x2t, new Uint8Array(data), filename, "xlsx");
|
|
|
|
convertedContent = x2tConvertDataInternal(x2t, convertedContent, "test.xlsx", extension);
|
|
|
|
return x2tConvertDataInternal(x2t, convertedContent, filename + ".xlsx", extension);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
convertedContent = x2tConvertDataInternal(x2t, new Uint8Array(data), filename, extension);
|
|
|
|
return x2tConvertDataInternal(x2t, new Uint8Array(data), filename, extension);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return convertedContent;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var importXLSXFile = function(content, filename) {
|
|
|
|
var importXLSXFile = function(content, filename) {
|
|
|
|