Allow ooslide and oodoc imports

This commit is contained in:
yflory 2020-01-24 15:58:42 +01:00
parent 99beeca8fd
commit 4a2b0fc114
1 changed files with 9 additions and 1 deletions

View File

@ -1399,10 +1399,18 @@ define([
$exportXLSX.appendTo($rightside);
var accept = [".bin", ".ods", ".xlsx"];
if (type === "ooslide") {
accept = ['.bin', '.odp', '.pptx'];
} else if (type === "oodoc") {
accept = ['.bin', '.odt', '.docx'];
}
if (typeof(Atomics) === "undefined") {
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);
if (common.isLoggedIn()) {