From 8e27fb282359e7f4a17112dbc50a8cda869a8198 Mon Sep 17 00:00:00 2001 From: "Nicolas A. Tonne" Date: Wed, 29 Apr 2015 00:39:05 +0200 Subject: [PATCH] Fixed hidden result --- index.php | 2 +- static/js/search.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index fd83b61b..2c905d43 100755 --- a/index.php +++ b/index.php @@ -64,7 +64,7 @@ -
+
diff --git a/static/js/search.js b/static/js/search.js index b28f4b03..5bdf801f 100755 --- a/static/js/search.js +++ b/static/js/search.js @@ -133,7 +133,9 @@ function showSearch(){ $(".search_input").focus(); } $("#song-title").toggleClass("hide"); - $("#results").toggleClass("hide"); + $("#results").removeClass("hide"); + $("#results").empty(); + $("#search").focus(); }