diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-25 12:58:36 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-25 12:58:36 -0700 |
commit | 4a6e7b74d7572071c919a335a264c3a45c825e06 (patch) | |
tree | e4843d3a5ec1db10b5890fb80ad23bae85f6ae34 | |
parent | 8e955198f66b62a95dddba39458e97ade59ffa89 (diff) |
debugging
-rw-r--r-- | management/editor/elements.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go index 53c15b2..0a26dd0 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -385,7 +385,9 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte { }); chips.on('chip.delete', function(e, chip) { - var sel = '.tag-'+chip.tag; + var sel = '.tag-'+chip.tag; + console.log(sel); + console.log(chips.parent().find(sel)); chips.parent().find(sel).remove(); // iterate through all hidden tag inputs to re-name them with the correct ` + name + `.index @@ -397,7 +399,6 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte { input.attr({ class: 'empty-tag', name: '` + name + `', - value: "", type: 'hidden' }); |