app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee in alchemy_cms-3.1.0.beta1 vs app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee in alchemy_cms-3.1.0.beta2
- old
+ new
@@ -24,7 +24,7 @@
text: term
_initializeSelection: (element, callback) ->
data = []
$(element.val().split(",")).each ->
- data.push id: this, text: this
+ data.push id: $.trim(this), text: this
callback(data)