From 2f63ec97373dd7e2e1d63763c5e007771d1e1c26 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 7 Nov 2016 10:33:10 -0800 Subject: adding test fix for tags/chips in new post UI --- management/editor/elements.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'management/editor') diff --git a/management/editor/elements.go b/management/editor/elements.go index 68b2b54..67aca5a 100644 --- a/management/editor/elements.go +++ b/management/editor/elements.go @@ -344,7 +344,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte { tags := values.Slice(0, values.Len()).Interface().([]string) // casts reflect.Value to []string html := ` -
+
` @@ -353,7 +353,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte { i := 0 for _, tag := range tags { tagName := tagNameFromStructFieldMulti(fieldName, i, p) - html += `` + html += `` initial = append(initial, `{tag: '`+tag+`'}`) i++ } @@ -389,7 +389,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" - var sel = '.tag.'+chip.tag.split(' ').join('.'); + var sel = '.__ponzu-tag.'+chip.tag.split(' ').join('.'); console.log(sel); console.log(chips.parent().find(sel)); chips.parent().find(sel).remove(); -- cgit v1.2.3