summaryrefslogtreecommitdiff
path: root/management/editor/elements.go
diff options
context:
space:
mode:
Diffstat (limited to 'management/editor/elements.go')
-rw-r--r--management/editor/elements.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 45cb7c7..899387b 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -375,7 +375,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
var input = $('<input>');
input.attr({
- class: 'tag '+chip.tag,
+ class: '__ponzu-tag '+chip.tag,
name: '` + name + `.'+String(tags.find('input[type=hidden]').length),
value: chip.tag,
type: 'hidden'
@@ -386,9 +386,7 @@ 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);
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