]> git.wh0rd.org - tt-rss.git/commitdiff
viewfeed_offline: show error message when no articles are found to display
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 20:23:12 +0000 (23:23 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 4 Feb 2009 20:23:12 +0000 (23:23 +0300)
offline.js

index 0050a58be71297e69b2ae74efc4f7384874b550d..05c190250f951cac693f0bca62b97d666ad652a1 100644 (file)
@@ -377,6 +377,12 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
        
                        if (offset == 0) {
                                tmp += "</table>";
+
+                               if (line_num - offset*30 == 0) {
+                                       tmp += "<div class='whiteBox'>" +
+                                               __("No articles found to display.") +
+                                               "</div>";
+                               }
                                tmp += "</div></div>";
                        }