]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchupFeedInGroup: send catchup request even if there are no unread articles in...
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 21 Mar 2016 18:43:54 +0000 (21:43 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 21 Mar 2016 18:43:54 +0000 (21:43 +0300)
js/feedlist.js

index 8a6bb3838cc0e97f1c67045c3536c733d3a43938..08c54122451ce656d2353611ed345e3de146cb7f 100644 (file)
@@ -450,26 +450,26 @@ function catchupFeedInGroup(id) {
 
                        if (rows.length > 0) {
 
-                               rows.each(function(row) {
+                               rows.each(function (row) {
                                        row.removeClassName("Unread");
                                });
 
                                updateFloatingTitle(true);
+                       }
 
-                               var catchup_query = "?op=rpc&method=catchupFeed&feed_id=" +
-                                               id + "&is_cat=false";
+                       var catchup_query = "?op=rpc&method=catchupFeed&feed_id=" +
+                                       id + "&is_cat=false";
 
-                               console.log(catchup_query);
+                       console.log(catchup_query);
 
-                               notify_progress("Loading, please wait...", true);
+                       notify_progress("Loading, please wait...", true);
 
-                               new Ajax.Request("backend.php", {
-                                       parameters: catchup_query,
-                                       onComplete: function (transport) {
-                                               handle_rpc_json(transport);
-                                       }
-                               } );
-                       }
+                       new Ajax.Request("backend.php", {
+                               parameters: catchup_query,
+                               onComplete: function (transport) {
+                                       handle_rpc_json(transport);
+                               }
+                       } );
 
                        //return viewCurrentFeed('MarkAllReadGR:' + id);
                }