From 9437f74bdc87107e38ca37f21d7d74579ad6f2aa Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 8 Jul 2022 16:28:21 +0200 Subject: [PATCH 1/1] Warn about required metadata --- src/redakcja/static/js/wiki/view_properties.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index eeddf678..7e284a50 100644 --- 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) { + $('
WYMAGANE
').appendTo($('.c', $fg)); + } + } }; -- 2.20.1