]> git.wh0rd.org Git - tt-rss.git/commitdiff
show new page on page catchup (2)
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 29 Sep 2006 04:57:07 +0000 (05:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 29 Sep 2006 04:57:07 +0000 (05:57 +0100)
viewfeed.js

index 8c0e03a74c459b399099c73c8e0295d2bc970f3a..e3aa51b05d62ff3130fd8adda9c66ba6bffa7388 100644 (file)
@@ -3,9 +3,15 @@ var _catchup_callback_func = false;
 
 function catchup_callback() {
        if (xmlhttp_rpc.readyState == 4) {
-               debug("catchup_callback");
-               setTimeout("viewCurrentFeed()", 100);   
-               all_counters_callback();
+               try {
+                       debug("catchup_callback");
+                       if (_catchup_callback_func) {
+                               setTimeout(_catchup_callback_func, 100);        
+                       }
+                       all_counters_callback();
+               } catch (e) {
+                       exception_error("catchup_callback", e);
+               }
        }
 }