From: Andrew Dolgov Date: Fri, 12 Nov 2010 14:41:32 +0000 (+0300) Subject: misc code cleanup X-Git-Tag: 1.5.0~259 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4169bb67e826671868b29b72ab4eb573517d062a;p=tt-rss.git misc code cleanup --- diff --git a/feedlist.js b/feedlist.js index b1608ec1..1136972d 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 f7a54b7c..b4af52a0 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 cf60ed62..4fb374aa 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 abd0f673..e8384123 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() {