From 8c03495b39a5ee7d0688f76fd770cb73a0027b38 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 May 2016 16:47:07 -0700 Subject: [PATCH] Archive check time should be cleared before list is changed rather than after. --- src/General/Settings.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 9075f11bb..854b750d2 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -429,6 +429,11 @@ Settings = for input in $$ '[name]', section inputs[input.name] = input + $.on inputs['archiveLists'], 'change', -> + $.set 'lastarchivecheck', 0 + Conf['lastarchivecheck'] = 0 + $.id('lastarchivecheck').textContent = 'never' + items = {} for name in ['archiveLists', 'archiveAutoUpdate', 'captchaLanguage', 'boardnav', 'time', 'backlink', 'fileInfo', 'QR.personas', 'favicon', 'usercss', 'customCooldown'] items[name] = Conf[name] @@ -445,11 +450,6 @@ Settings = Settings[key].call input return - $.on inputs['archiveLists'], 'change', -> - $.set 'lastarchivecheck', 0 - Conf['lastarchivecheck'] = 0 - $.id('lastarchivecheck').textContent = 'never' - interval = inputs['Interval'] customCSS = inputs['Custom CSS'] applyCSS = $ '#apply-css', section