Archive check time should be cleared before list is changed rather than after.

This commit is contained in:
ccd0 2016-05-15 16:47:07 -07:00
parent ba6a47dfaf
commit 8c03495b39

View File

@ -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