]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable resetSearch() when query is blank
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 05:55:20 +0000 (06:55 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 05:55:20 +0000 (06:55 +0100)
tt-rss.js

index 033f144ff930682925c1b65a96081a5dd6211803..701bec89d1cb8c59bfba7aa2f210810a9472d975 100644 (file)
--- 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, "");
        }
 }