diff --git a/backend.php b/backend.php index 25305e5ab..8e3529287 100644 --- a/backend.php +++ b/backend.php @@ -757,8 +757,6 @@ window.onload = init; "; -// print_r($_GET); - $search = db_escape_string($_GET["query"]); $search_mode = db_escape_string($_GET["search_mode"]); $match_on = db_escape_string($_GET["match_on"]); diff --git a/feedlist.js b/feedlist.js index b5ca9aca2..f61feac60 100644 --- a/feedlist.js +++ b/feedlist.js @@ -79,6 +79,10 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) { var toolbar_query = parent.Form.serialize("main_toolbar_form"); + if (parent.document.forms["main_toolbar_form"].query) { + parent.document.forms["main_toolbar_form"].query.value = ""; + } + var query = "backend.php?op=viewfeed&feed=" + feed + "&" + toolbar_query + "&subop=" + param_escape(subop); diff --git a/tt-rss.js b/tt-rss.js index 1d4e022a1..765cb1e72 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -248,6 +248,7 @@ function viewCurrentFeed(skip, subop) { disableContainerChildren("headlinesToolbar", false, document); viewfeed(-1, skip, subop); // FIXME } + return false; // block unneeded form submits } function viewfeed(feed, skip, subop) { diff --git a/tt-rss.php b/tt-rss.php index c915bbc2d..c40521563 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -150,26 +150,17 @@ window.onload = init;