From 164f4738ebbd48dc7379d58aadbd0ff2b658079e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 May 2006 13:09:55 +0100 Subject: [PATCH] enable search toolbar --- backend.php | 2 -- feedlist.js | 4 ++++ tt-rss.js | 1 + tt-rss.php | 32 ++++++++++++-------------------- 4 files changed, 17 insertions(+), 22 deletions(-) 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; - -
+ + + + +   + + View: -  Limit: + +  Limit: 15, 30 => 30, 60 => 60, 0 => "All");