force timestamp hack to most main operations

This commit is contained in:
Andrew Dolgov 2007-02-07 18:01:35 +01:00
parent e3a21a251c
commit 86173d9a95
3 changed files with 11 additions and 5 deletions

View 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);

View File

@ -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
}
if (fetch) query_str = query_str + "&fetch=yes";

View 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);