From c2489ce6cba695fec09e07c23dab55af756e8dce Mon Sep 17 00:00:00 2001 From: benjaminneildavis Date: Mon, 5 Jan 2015 16:14:51 -0500 Subject: [PATCH] Fix of search when tabbing in --- dev/dev.html | 33 ++++++++++----------------------- js/search.js | 5 +++-- 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/dev/dev.html b/dev/dev.html index 3a7d66fc6..434946c96 100644 --- a/dev/dev.html +++ b/dev/dev.html @@ -48,29 +48,16 @@
-
- -
-
- -
-
- -
-
- +
+
diff --git a/js/search.js b/js/search.js index 7107d5317..959604771 100644 --- a/js/search.js +++ b/js/search.js @@ -118,7 +118,7 @@ else { val = this.$input.val(); - if(val!==this.activeSearch){ + if(val!==this.activeSearch || !val){ this.$icon.removeClass(remove).addClass(search); if(val) { this.$element.removeClass('searched'); @@ -126,7 +126,8 @@ else if (this.options.clearOnEmpty){ this.clear(); } - }else{ + } + else{ this.$icon.removeClass(search).addClass(remove); } }