summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.js4
-rw-r--r--tt-rss.js8
-rw-r--r--viewfeed.js4
3 files changed, 11 insertions, 5 deletions
diff --git a/functions.js b/functions.js
index 17370dfdd..7000c585e 100644
--- a/functions.js
+++ b/functions.js
@@ -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);
diff --git a/tt-rss.js b/tt-rss.js
index be3aca8e6..b50cc3b71 100644
--- 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";
diff --git a/viewfeed.js b/viewfeed.js
index 3291f82b5..7caba319d 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -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);