Skip to content
Browse files

clearing search box now clears search terms, as before, does not redo…

… query
  • Loading branch information...
1 parent b40ddae commit c09df543991d6e0d2c5edd22bbf721d3265fff9c Joseph Gay committed Apr 24, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 histmark-manager.js
View
7 histmark-manager.js
@@ -274,14 +274,19 @@ histmark_buffer.prototype = {
search_timeout: null,
update_search: function (event) {
- if (! event || ! event.target || ! event.target.value)
+ if (! event || ! event.target)
return;
if (this.search_timeout) {
this.window.clearTimeout(this.search_timeout);
this.search_timeout = null;
}
+ if (! event.target.value) {
+ this.search_terms = [];
+ return;
+ }
+
let perform_search = function () {
this.search_terms = [event.target.value];
this.current_page = 0;

0 comments on commit c09df54

Please sign in to comment.
Something went wrong with that request. Please try again.