1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

disable resetSearch() when query is blank

This commit is contained in:
Andrew Dolgov 2005-09-06 06:55:20 +01:00
parent a8d28f48e8
commit 64c620ce46

View File

@ -305,8 +305,10 @@ function timeout() {
} }
function resetSearch() { function resetSearch() {
document.getElementById("searchbox").value = ""; var searchbox = document.getElementById("searchbox")
if (active_feed_id) {
if (searchbox.value != "" && active_feed_id) {
searchbox.value = "";
viewfeed(active_feed_id, 0, ""); viewfeed(active_feed_id, 0, "");
} }
} }