summaryrefslogtreecommitdiff
path: root/management/editor/elements.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-25 12:55:14 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-25 12:55:14 -0700
commit8e955198f66b62a95dddba39458e97ade59ffa89 (patch)
treeb3faa0a920a0605425c1d7fbcafeeb292fbbef71 /management/editor/elements.go
parent9f546ab16261a62ebdf7a8852e6cf6783d96b924 (diff)
debugging
Diffstat (limited to 'management/editor/elements.go')
-rw-r--r--management/editor/elements.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 6908e0e..53c15b2 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -371,7 +371,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
var chips = tags.find('.chips');
chips.on('chip.add', function(e, chip) {
- tags.find('.empty-tag').remove();
+ chips.parent().find('.empty-tag').remove();
var input = $('<input>');
input.attr({
@@ -385,9 +385,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
});
chips.on('chip.delete', function(e, chip) {
- var sel = '.tag-'+chip.tag;
- console.log(sel);
- console.log(chips.parent().find(sel));
+ var sel = '.tag-'+chip.tag;
chips.parent().find(sel).remove();
// iterate through all hidden tag inputs to re-name them with the correct ` + name + `.index