summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-06 06:55:20 +0100
committerAndrew Dolgov <[email protected]>2005-09-06 06:55:20 +0100
commit64c620ce4690bcb0af23f95943882bd54165ee13 (patch)
treef46de7ea6a6962d593c8b525d991fdc4750075aa /tt-rss.js
parenta8d28f48e85eae42fba94113a494277929829ddb (diff)
disable resetSearch() when query is blank
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 033f144ff..701bec89d 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, "");
}
}