fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d4704
)
Warn about required metadata
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 8 Jul 2022 14:28:21 +0000
(16:28 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 8 Jul 2022 14:28:21 +0000
(16:28 +0200)
src/redakcja/static/js/wiki/view_properties.js
patch
|
blob
|
history
diff --git
a/src/redakcja/static/js/wiki/view_properties.js
b/src/redakcja/static/js/wiki/view_properties.js
index
eeddf67
..
7e284a5
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_properties.js
+++ b/
src/redakcja/static/js/wiki/view_properties.js
@@
-273,6
+273,13
@@
field,
this);
});
+
+ count = $('.c > .input-group', $fg).length;
+ if (field.required) {
+ if (!count) {
+ $('<div class="text-warning">WYMAGANE</div>').appendTo($('.c', $fg));
+ }
+ }
};