Fix autocomplete

This commit is contained in:
YNH Webdev
2013-11-08 00:09:09 +01:00
parent 86339d8163
commit 0d79799a5d
2 changed files with 2 additions and 2 deletions

View File

@@ -396,7 +396,7 @@ class WSF_AUTOCOMPLETE_CONTROL extends WSF_INPUT_CONTROL
self = @ self = @
console.log @$el console.log @$el
@$el.typeahead({ @$el.typeahead({
name: @control_name name: @control_name+Math.random()
template: @state['template'] template: @state['template']
engine: Mini engine: Mini
remote: remote:

View File

@@ -668,7 +668,7 @@ WSF_AUTOCOMPLETE_CONTROL = (function(_super) {
self = this; self = this;
console.log(this.$el); console.log(this.$el);
this.$el.typeahead({ this.$el.typeahead({
name: this.control_name, name: this.control_name + Math.random(),
template: this.state['template'], template: this.state['template'],
engine: Mini, engine: Mini,
remote: { remote: {