From: Andrew Dolgov Date: Wed, 3 Apr 2013 14:20:14 +0000 (+0400) Subject: replace catchupCurrentFeed dropdown with a better control X-Git-Tag: 1.7.7~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e3ca32a818ce818cf22b5cb49a33d4704369febe;p=tt-rss.git replace catchupCurrentFeed dropdown with a better control --- diff --git a/index.php b/index.php index dd3d34b3..a8cc38ca 100644 --- a/index.php +++ b/index.php @@ -187,15 +187,20 @@ - +
+ +
+
+ +
+
+ +
+
+ +
+
+
diff --git a/js/feedlist.js b/js/feedlist.js index 9d643142..3154a288 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -380,20 +380,8 @@ function getNextUnreadFeed(feed, is_cat) { } } -function catchupCurrentFeed(elem) { - - if (elem) { - var toolbar = document.forms["main_toolbar_form"]; - var catchup_feed = dijit.getEnclosingWidget(toolbar.catchup_feed); - var mode = catchup_feed.attr('value'); - - if (mode != 'default') { - catchupFeed(getActiveFeedId(), activeFeedIsCat(), mode); - catchup_feed.attr('value', 'default'); - } - } else { - catchupFeed(getActiveFeedId(), activeFeedIsCat()); - } +function catchupCurrentFeed(mode) { + catchupFeed(getActiveFeedId(), activeFeedIsCat(), mode); } function catchupFeedInGroup(id) {