Google news example
This commit is contained in:
@@ -263,9 +263,8 @@
|
||||
|
||||
WSF_AUTOCOMPLETE_CONTROL.prototype.attach_events = function() {
|
||||
var self;
|
||||
WSF_AUTOCOMPLETE_CONTROL.__super__.attach_events.apply(this, arguments);
|
||||
self = this;
|
||||
return this.$el.typeahead({
|
||||
this.$el.typeahead({
|
||||
name: this.control_name,
|
||||
template: window.states[this.control_name]['template'],
|
||||
engine: Mini,
|
||||
@@ -284,6 +283,9 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
return this.$el.on('typeahead:closed', function() {
|
||||
return self.change();
|
||||
});
|
||||
};
|
||||
|
||||
return WSF_AUTOCOMPLETE_CONTROL;
|
||||
|
||||
Reference in New Issue
Block a user