We'll need this for the stable branch.

This commit is contained in:
Nicolas Stepien 2011-10-27 22:28:30 +02:00
parent 28e0b83466
commit 0400ecb42f
2 changed files with 5 additions and 5 deletions

View File

@ -2953,7 +2953,7 @@
};
Main = {
init: function() {
var cutoff, hiddenThreads, id, lastChecked, now, pathname, reqUpdate, temp, timestamp, _ref;
var cutoff, hiddenThreads, id, lastChecked, now, pathname, temp, timestamp, _ref;
if (location.hostname === 'sys.4chan.org') {
QR.sys();
return;
@ -2970,8 +2970,8 @@
g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {});
lastChecked = $.get('lastChecked', 0);
now = Date.now();
reqUpdate = lastChecked < now - 1 * DAY;
if (reqUpdate) {
Main.reqUpdate = lastChecked < now - 1 * DAY;
if (Main.reqUpdate) {
$.set('lastChecked', now);
cutoff = now - 7 * DAY;
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});

View File

@ -2254,9 +2254,9 @@ Main =
lastChecked = $.get 'lastChecked', 0
now = Date.now()
reqUpdate = lastChecked < now - 1*DAY
Main.reqUpdate = lastChecked < now - 1*DAY
if reqUpdate
if Main.reqUpdate
$.set 'lastChecked', now
cutoff = now - 7*DAY