From d75ed3eba5022e50ccaf850ae2c9028f80902d76 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Jan 2009 05:04:57 +0100 Subject: [PATCH] headlines toolbar: code cleanup --- functions.php | 132 ++++++++++++++++---------------------------------- tt-rss.js | 13 ----- viewfeed.js | 40 --------------- 3 files changed, 41 insertions(+), 144 deletions(-) diff --git a/functions.php b/functions.php index 1cdcaa64..416ab7c9 100644 --- a/functions.php +++ b/functions.php @@ -3978,115 +3978,65 @@ } - print ""; - - -/* print""; */ + print "  "; - print __('Select:')." - ".__('All').", - ".__('Unread').", - ".__('Invert').", - ".__('None').""; + print "". + __("Actions...") . "   + "; - print "  "; + print ""; + print ""; print ""; - print ""; - print ""; if ($feed_site_url) { diff --git a/tt-rss.js b/tt-rss.js index 8dfcb825..2e16fc80 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1202,19 +1202,6 @@ function hotkey_handler(e) { } } - if (keycode == 220 && shift_key) { // shift + | - if (document.getElementById("subtoolbar_search")) { - if (Element.visible("subtoolbar_search")) { - Element.hide("subtoolbar_search"); - Element.show("subtoolbar_ftitle"); - setTimeout("Element.focus('subtoolbar_search_box')", 100); - } else { - Element.show("subtoolbar_search"); - Element.hide("subtoolbar_ftitle"); - } - } - } - if (keycode == 88) { // x if (activeFeedIsCat()) { toggleCollapseCat(getActiveFeedId()); diff --git a/viewfeed.js b/viewfeed.js index bfe1eff4..391e84bd 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -177,8 +177,6 @@ function headlines_callback2(transport, feed_cur_page) { markHeadline(ids[i]); } - subtoolbarSearch(); - } else { debug("no new headlines received"); } @@ -1822,44 +1820,6 @@ function fixHeadlinesOrder(ids) { } } -function subtoolbarSearch() { - try { - - var q = document.getElementById("subtoolbar_search_box"); - - if (!q) return; - - q = q.value.toUpperCase(); - - var ids = false; - var vis_ids = new Array(); - - if (document.getElementById("headlinesList")) { - ids = getVisibleHeadlineIds(); - } else { - ids = cdmGetVisibleArticles(); - } - - for (var i = 0; i < ids.length; i++) { - var title = document.getElementById("RTITLE-" + ids[i]); - - if (title) { - if (!title.innerHTML.toUpperCase().match(q)) { - Element.hide(document.getElementById("RROW-" + ids[i])); - } else { - Element.show(document.getElementById("RROW-" + ids[i])); - vis_ids.push(ids[i]); - } - } - } - - fixHeadlinesOrder(vis_ids); - - } catch (e) { - exception_error("subtoolbarSearch", e); - } -} - function hideReadHeadlines() { try { -- 2.39.5