summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-21 05:04:57 +0100
committerAndrew Dolgov <[email protected]>2009-01-21 05:04:57 +0100
commitd75ed3eba5022e50ccaf850ae2c9028f80902d76 (patch)
treee48b8e062e732cf6b23504d0111f91ebaebfba70 /viewfeed.js
parentb62f6ff448e8af386b4e0ff662098522d6332a52 (diff)
headlines toolbar: code cleanup
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/viewfeed.js b/viewfeed.js
index bfe1eff4f..391e84bd9 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 {