]> git.wh0rd.org Git - tt-rss.git/commitdiff
force timestamp hack to most main operations
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Feb 2007 17:01:35 +0000 (18:01 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Feb 2007 17:01:35 +0000 (18:01 +0100)
functions.js
tt-rss.js
viewfeed.js

index 17370dfdd159c4967a55c16789489546b597cf41..7000c585e90e09f39a377d045d289905c71b5b2f 100644 (file)
@@ -802,6 +802,10 @@ function update_all_counters(feed) {
 
                debug("update_all_counters QUERY: " + query);
 
+               var date = new Date();
+               var timestamp = Math.round(date.getTime() / 1000);
+               query = query + "&ts=" + timestamp
+
                xmlhttp_rpc.open("GET", query, true);
                xmlhttp_rpc.onreadystatechange=all_counters_callback;
                xmlhttp_rpc.send(null);
index be3aca8e6c1933a4acaceb3908eb2129eb879d28..b50cc3b7173a5a0d388e083ebdcd3fa3f2e06561 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -202,11 +202,9 @@ function updateFeedList(silent, fetch) {
                query_str = query_str + "&actid=" + getActiveFeedId();
        }
 
-       if (navigator.userAgent.match("Opera")) {
-               var date = new Date();
-               var timestamp = Math.round(date.getTime() / 1000);
-               query_str = query_str + "&ts=" + timestamp
-       }
+       var date = new Date();
+       var timestamp = Math.round(date.getTime() / 1000);
+       query_str = query_str + "&ts=" + timestamp
        
        if (fetch) query_str = query_str + "&fetch=yes";
 
index 3291f82b5db50f097d675ccb9f99b0a2efb12e0d..7caba319d2346296caba34af259b36c7c1ca6f1c 100644 (file)
@@ -129,6 +129,10 @@ function view(id, feed_id, skip_history) {
                        selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false);
                        markHeadline(active_post_id);
 
+                       var date = new Date();
+                       var timestamp = Math.round(date.getTime() / 1000);
+                       query = query + "&ts=" + timestamp
+
                        xmlhttp.open("GET", query, true);
                        xmlhttp.onreadystatechange=article_callback;
                        xmlhttp.send(null);