From 64c620ce4690bcb0af23f95943882bd54165ee13 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Sep 2005 06:55:20 +0100 Subject: [PATCH] disable resetSearch() when query is blank --- tt-rss.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, ""); } } -- 2.39.5