fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602fd10
)
Fix meta editor for ns-less tags.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 14 Jul 2022 07:54:47 +0000
(09:54 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 14 Jul 2022 07:54:47 +0000
(09:54 +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
7e284a5
..
a7caf10
100644
(file)
--- 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,