fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e32eab0
)
allow sg, but not tiff
author
Jan Szejko
<janek37@gmail.com>
Wed, 1 Mar 2017 11:16:22 +0000
(12:16 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Wed, 1 Mar 2017 11:16:22 +0000
(12:16 +0100)
src/editor/plugins/core/metadataEditor/action.js
patch
|
blob
|
history
diff --git
a/src/editor/plugins/core/metadataEditor/action.js
b/src/editor/plugins/core/metadataEditor/action.js
index
96e5b95
..
8c420c5
100644
(file)
--- 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');
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();
return;
}
e.success();