From: Andrew Dolgov Date: Tue, 6 Sep 2005 05:55:20 +0000 (+0100) Subject: disable resetSearch() when query is blank X-Git-Tag: 1.0.3~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=64c620ce4690bcb0af23f95943882bd54165ee13;p=tt-rss.git disable resetSearch() when query is blank --- diff --git a/tt-rss.js b/tt-rss.js index 033f144f..701bec89 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -305,8 +305,10 @@ function timeout() { } function resetSearch() { - document.getElementById("searchbox").value = ""; - if (active_feed_id) { + var searchbox = document.getElementById("searchbox") + + if (searchbox.value != "" && active_feed_id) { + searchbox.value = ""; viewfeed(active_feed_id, 0, ""); } }