summaryrefslogtreecommitdiff
path: root/management/editor
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-05 13:00:02 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-05 13:00:02 -0800
commit79d47df50005ce8e9c1962fe1b9dc524306517c3 (patch)
treefc271a3b4a8456786d6ddb261f986ab88e2b2b50 /management/editor
parent949cb4615a37c30dd7048de6e7fe9befbe92e63c (diff)
more testing of fix for Tags input
Diffstat (limited to 'management/editor')
-rw-r--r--management/editor/elements.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 05b8065..fd298fc 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -387,7 +387,8 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
chips.on('chip.delete', function(e, chip) {
// convert tag string to class-like selector "some tag" -> ".some.tag"
console.log(chip.tag);
- var sel = '.__ponzu-tag' + chip.tag.split(' ').join('.');
+ var sel = '.__ponzu-tag.' + chip.tag.split(' ').join('.');
+ console.log(sel);
chips.parent().find(sel).remove();
// iterate through all hidden tag inputs to re-name them with the correct ` + name + `.index