From 4169bb67e826671868b29b72ab4eb573517d062a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Nov 2010 17:41:32 +0300 Subject: [PATCH] misc code cleanup --- feedlist.js | 8 +++----- functions.php | 12 +++++++----- offline.js | 2 +- tt-rss.js | 11 +---------- 4 files changed, 12 insertions(+), 21 deletions(-) diff --git a/feedlist.js b/feedlist.js index b1608ec18..1136972d7 100644 --- a/feedlist.js +++ b/feedlist.js @@ -55,8 +55,7 @@ function viewNextFeedPage() { console.log("viewNextFeedPage: calling viewfeed(), p: " + parseInt(_feed_cur_page+1)); - viewfeed(getActiveFeedId(), undefined, activeFeedIsCat(), undefined, - undefined, parseInt(_feed_cur_page+1)); + viewfeed(getActiveFeedId(), '', activeFeedIsCat(), parseInt(_feed_cur_page+1)); } catch (e) { exception_error("viewNextFeedPage", e); @@ -64,12 +63,11 @@ function viewNextFeedPage() { } -function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) { +function viewfeed(feed, subop, is_cat, offset) { try { if (is_cat == undefined) is_cat = false; - if (offline_mode) return viewfeed_offline(feed, subop, is_cat, subop_param, - skip_history, offset); + if (offline_mode) return viewfeed_offline(feed, subop, is_cat, offset); // if (!offset) page_offset = 0; diff --git a/functions.php b/functions.php index f7a54b7c2..b4af52a04 100644 --- a/functions.php +++ b/functions.php @@ -5239,7 +5239,7 @@ print "". "
$feed_icon_img
". - "". + "". $line["feed_title"]." $vf_catchup_link"; } } @@ -5280,7 +5280,7 @@ if (!get_pref($link, 'VFEED_GROUP_BY_FEED')) { if (@$line["feed_title"]) { print " - (". + (". $line["feed_title"].") "; } @@ -5296,7 +5296,9 @@ print "$score_pic"; if (@$line["feed_title"] && !get_pref($link, 'VFEED_GROUP_BY_FEED')) { - print "$feed_icon_img"; + print "$feed_icon_img"; } print ""; @@ -5323,7 +5325,7 @@ print "
". "
$feed_icon_img
". - "". + "". $line["feed_title"]." $vf_catchup_link
"; } } @@ -5461,7 +5463,7 @@ 'images/tag.png')."' alt='Tags' title='Tags'> $tags_str (+)"; + href=\"#\" onclick=\"editArticleTags($id, $feed_id, true)\">(+)"; print "
"; diff --git a/offline.js b/offline.js index cf60ed62e..4fb374aab 100644 --- a/offline.js +++ b/offline.js @@ -66,7 +66,7 @@ function view_offline(id) { } } -function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, offset) { +function viewfeed_offline(feed_id, subop, is_cat, offset) { try { notify(''); diff --git a/tt-rss.js b/tt-rss.js index abd0f673e..e83841232 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -215,18 +215,9 @@ function timeout() { setTimeout("timeout()", 3000); } -function resetSearch() { - var searchbox = $("searchbox") - - if (searchbox.value != "" && getActiveFeedId()) { - searchbox.value = ""; - viewfeed(getActiveFeedId(), ""); - } -} - function search() { closeInfoBox(); - viewCurrentFeed(0, ""); + viewCurrentFeed(); } function updateTitle() {