From 4ae16f413134e9af047edc2b6a2821e1697c83af Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 11 Jan 2014 11:31:15 -0700 Subject: [PATCH] Set a close timeout on the Index.notify --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Index.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 4ce4b382e..cb9968b6a 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -2503,7 +2503,7 @@ $.ready(function() { return setTimeout((function() { if (Index.req && !Index.notice) { - return Index.notice = new Notice('info', 'Refreshing index...'); + return Index.notice = new Notice('info', 'Refreshing index...', 2); } }), 3 * $.SECOND - (Date.now() - now)); }); diff --git a/builds/crx/script.js b/builds/crx/script.js index 94176b17f..db29c4ddd 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -2513,7 +2513,7 @@ $.ready(function() { return setTimeout((function() { if (Index.req && !Index.notice) { - return Index.notice = new Notice('info', 'Refreshing index...'); + return Index.notice = new Notice('info', 'Refreshing index...', 2); } }), 3 * $.SECOND - (Date.now() - now)); }); diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 7184b8fca..611b2fb70 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -238,7 +238,7 @@ Index = $.ready -> setTimeout (-> if Index.req and !Index.notice - Index.notice = new Notice 'info', 'Refreshing index...' + Index.notice = new Notice 'info', 'Refreshing index...', 2 ), 3 * $.SECOND - (Date.now() - now) pageNum = null if typeof pageNum isnt 'number' # event