From 667a0106a4beba6eb4dfde0398b2223adf0ebac9 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 1 Mar 2017 12:16:22 +0100 Subject: [PATCH 1/1] allow sg, but not tiff --- src/editor/plugins/core/metadataEditor/action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/plugins/core/metadataEditor/action.js b/src/editor/plugins/core/metadataEditor/action.js index 96e5b95..8c420c5 100644 --- a/src/editor/plugins/core/metadataEditor/action.js +++ b/src/editor/plugins/core/metadataEditor/action.js @@ -29,8 +29,8 @@ return function(ctx) { dialog.setContentView(view.dom); dialog.on('execute', function(e) { var cover_url = view.getMetadataByKey('relation.coverimage.url'); - if (cover_url && !cover_url.match(/\.(png|jpg|jpeg|gif|tif|tiff)$/i)) { - window.alert(gettext('The cover needs to be an image file: jpg, png, gif. Use another URL or clear the cover field.')); + if (cover_url && !cover_url.match(/\.(png|jpg|jpeg|gif|svg)$/i)) { + window.alert(gettext('The cover needs to be an image file: jpg, png, gif, svg. Use another URL or clear the cover field.')); return; } e.success(); -- 2.20.1