Allow ooslide and oodoc imports

pull/1/head
yflory 5 years ago
parent 99beeca8fd
commit 4a2b0fc114

@ -1399,10 +1399,18 @@ define([
$exportXLSX.appendTo($rightside); $exportXLSX.appendTo($rightside);
var accept = [".bin", ".ods", ".xlsx"]; var accept = [".bin", ".ods", ".xlsx"];
if (type === "ooslide") {
accept = ['.bin', '.odp', '.pptx'];
} else if (type === "oodoc") {
accept = ['.bin', '.odt', '.docx'];
}
if (typeof(Atomics) === "undefined") { if (typeof(Atomics) === "undefined") {
accept = ['.bin']; accept = ['.bin'];
} }
var $importXLSX = common.createButton('import', true, { accept: accept, binary : ["ods", "xlsx"] }, importXLSXFile); var $importXLSX = common.createButton('import', true, {
accept: accept,
binary : ["ods", "xlsx", "odt", "docx", "odp", "pptx"]
}, importXLSXFile);
$importXLSX.appendTo($rightside); $importXLSX.appendTo($rightside);
if (common.isLoggedIn()) { if (common.isLoggedIn()) {

Loading…
Cancel
Save