From 86173d9a958ab2b2482d683fae3d7c8c627a3ba4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 7 Feb 2007 18:01:35 +0100 Subject: [PATCH] force timestamp hack to most main operations --- functions.js | 4 ++++ tt-rss.js | 8 +++----- viewfeed.js | 4 ++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/functions.js b/functions.js index 17370dfd..7000c585 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 be3aca8e..b50cc3b7 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 3291f82b..7caba319 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); -- 2.39.5