summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-25 12:03:06 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-25 12:03:06 -0700
commitbc91bc22c15f66d1aa7917339da1a46c4960c856 (patch)
treeb1eea7feefe288ac5266a38784761b529ee352a7
parent9e6b04dd2af4c86a2a134879062faa6caef5944a (diff)
more js fixes in Tags element
-rw-r--r--management/editor/elements.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/management/editor/elements.go b/management/editor/elements.go
index 8b69981..a5d112b 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -345,7 +345,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
html := `
<div class="input-field col s12 tags ` + name + `">
- <div class="chips` + name + `"></div>
+ <div class="chips ` + name + `"></div>
`
var initial []string
@@ -361,7 +361,7 @@ func Tags(fieldName string, p interface{}, attrs map[string]string) []byte {
<script>
$(function() {
var tags = $('.tags.` + name + `');
- $('.chips` + name + `').material_chip({
+ $('.chips.` + name + `').material_chip({
data: [` + strings.Join(initial, ",") + `],
placeholder: '` + attrs["label"] + `',
secondaryPlaceholder: 'Type and press "Enter" to add ` + name + `'