summaryrefslogtreecommitdiff
path: root/management/editor
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-05 12:30:39 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-05 12:30:39 -0800
commitb7cf9b7aec82be02d1490b49791b93a48fe90c86 (patch)
treea659d6955ad13ecb9eb92a21c96c0df73311eafd /management/editor
parentf5f1391bf2b661f14182d2827345481c0770cf3f (diff)
testing fix for Tags issue
Diffstat (limited to 'management/editor')
-rw-r--r--management/editor/elements.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 0f48400..4d9bd28 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -386,11 +386,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"
- var sel = '.__ponzu-tag';
- if (chip.tag.length > 0) {
- sel += '.';
- sel += chip.tag.split(' ').join('.');
- }
+ console.log(chip.tag);
+ var sel = '.__ponzu-tag' + '.' + chip.tag.split(' ').join('.');
chips.parent().find(sel).remove();
// iterate through all hidden tag inputs to re-name them with the correct ` + name + `.index