mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-30 23:41:30 +08:00
Merge branch 'updated-search'
This commit is contained in:
commit
577e1b28fa
@ -1,7 +1,6 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
var SearchView = Backbone.View.extend({
|
var SearchView = Backbone.View.extend({
|
||||||
events: {
|
events: {
|
||||||
"keyup #search-input": "search",
|
|
||||||
"click #search-clear": "clear"
|
"click #search-clear": "clear"
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -15,6 +14,7 @@ $(function() {
|
|||||||
this.$searchInputClear = this.$("#search-clear");
|
this.$searchInputClear = this.$("#search-clear");
|
||||||
this.$iconsSection = this.$("#icons");
|
this.$iconsSection = this.$("#icons");
|
||||||
|
|
||||||
|
this.$searchInput.on("keyup", _.debounce(_.bind(this.search, this), 200));
|
||||||
this.algoliaHelper.on("result", _.bind(this.showResults, this));
|
this.algoliaHelper.on("result", _.bind(this.showResults, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user