Google news example

This commit is contained in:
YNH Webdev
2013-09-14 17:46:57 +02:00
parent 95f823e7a1
commit 26ec7d94c6
13 changed files with 333 additions and 15 deletions

View File

@@ -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;