From b934820d233cef3b43ecafc79414806d8a9d303d Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 26 Feb 2021 17:43:38 +0100 Subject: [PATCH] Add json filter in kanban import --- www/kanban/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/kanban/inner.js b/www/kanban/inner.js index 5d4aa4302..26aa6325b 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -1055,7 +1055,7 @@ define([ if (framework.isReadOnly() || framework.isLocked()) { $container.addClass('cp-app-readonly'); } - framework.setFileImporter({}, function (content /*, file */) { + framework.setFileImporter({accept: ['.json', 'application/json']}, function (content /*, file */) { var parsed; try { parsed = JSON.parse(content); } catch (e) { return void console.error(e); }