From: Andrew Dolgov Date: Sun, 21 May 2006 12:09:55 +0000 (+0100) Subject: enable search toolbar X-Git-Tag: 1.2.0~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=164f4738ebbd48dc7379d58aadbd0ff2b658079e;p=tt-rss.git enable search toolbar --- diff --git a/backend.php b/backend.php index 25305e5a..8e352928 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 b5ca9aca..f61feac6 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 1d4e022a..765cb1e7 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 c915bbc2..c4052156 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");