$this.clearHighlights();
return true;
});
+
+ $(document).on('keyup', '#q', function () {
+ if ($(this).val() == '') {
+ $this.setHighlightTerms([]);
+ $this.clearHighlights();
+ }
+ return true;
+ });
},
getHints: function (q, callback) {
var $this = this;
// Clear search query and close search related menu items
closeSearch: function () {
$('#q').val(''); // Clear search field
+ this.clearHighlights();
+ this.setHighlightTerms([]);
+
this.hideSearchHints();
this.hideSearchResults();
- this.clearHighlights()
this.fluidbook.showMenuItems(); // Show menu items that were hidden previously
},
this.find(q, function (results) {
$this.openResults(results);
});
-
-
},
openResults: function (results) {