X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9437f74bdc87107e38ca37f21d7d74579ad6f2aa..db255ed9d242c56b010061fbdef8de9b696869d4:/src/redakcja/static/js/wiki/view_properties.js diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 7e284a50..a7caf10a 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -266,8 +266,12 @@ // clear container $('.c', $fg).empty(); - - $("> [x-node='RDF'] > [x-node='Description'] > [x-node='"+tag+"'][x-ns='"+ns+"']", self.$edited).each(function() { + + let selector = "> [x-node='RDF'] > [x-node='Description'] > [x-node='"+tag+"']"; + if (ns) { + selector += "[x-ns='"+ns+"']"; + } + $(selector, self.$edited).each(function() { self.addMetaInput( $('.c', $fg), field,