From bfae504bdc611cdc4a0a9e46f16fb6c1a13538ae Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 30 Apr 2012 12:04:58 +0200 Subject: [PATCH] Show search popup after hide --- couchpotato/core/plugins/movie/static/search.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/movie/static/search.js b/couchpotato/core/plugins/movie/static/search.js index 8d6b2af7..d668a687 100644 --- a/couchpotato/core/plugins/movie/static/search.js +++ b/couchpotato/core/plugins/movie/static/search.js @@ -15,6 +15,8 @@ Block.Search = new Class({ 'keyup': self.keyup.bind(self), 'focus': function(){ self.el.addClass('focused') + if(this.get('value')) + self.hideResults(false) }, 'blur': function(){ self.el.removeClass('focused') @@ -55,6 +57,7 @@ Block.Search = new Class({ var self = this; (e).preventDefault(); + self.last_q = ''; self.input.set('value', ''); self.input.focus()