From ba6a47dfaf27b3b3992c6f823fd93059b83f40c3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 May 2016 16:15:25 -0700 Subject: [PATCH] archiveSources -> archiveLists --- src/Archive/Redirect.coffee | 2 +- src/General/Settings.coffee | 6 +++--- src/General/Settings/Advanced.html | 2 +- src/config/Config.coffee | 2 +- src/css/style.css | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Archive/Redirect.coffee b/src/Archive/Redirect.coffee index 9d825308d..0d540ed87 100644 --- a/src/Archive/Redirect.coffee +++ b/src/Archive/Redirect.coffee @@ -45,7 +45,7 @@ Redirect = urls = [] responses = [] nloaded = 0 - for url in Conf['archiveSources'].split('\n') when url[0] isnt '#' + for url in Conf['archiveLists'].split('\n') when url[0] isnt '#' url = url.trim() urls.push url if url diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 62439b0dd..9075f11bb 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -430,10 +430,10 @@ Settings = inputs[input.name] = input items = {} - for name in ['archiveSources', 'archiveAutoUpdate', 'captchaLanguage', 'boardnav', 'time', 'backlink', 'fileInfo', 'QR.personas', 'favicon', 'usercss', 'customCooldown'] + for name in ['archiveLists', 'archiveAutoUpdate', 'captchaLanguage', 'boardnav', 'time', 'backlink', 'fileInfo', 'QR.personas', 'favicon', 'usercss', 'customCooldown'] items[name] = Conf[name] input = inputs[name] - event = if name in ['archiveSources', 'archiveAutoUpdate', 'QR.personas', 'favicon', 'usercss'] then 'change' else 'input' + event = if name in ['archiveLists', 'archiveAutoUpdate', 'QR.personas', 'favicon', 'usercss'] then 'change' else 'input' $.on input, event, $.cb[if input.type is 'checkbox' then 'checked' else 'value'] $.on input, event, Settings[name] if name of Settings @@ -445,7 +445,7 @@ Settings = Settings[key].call input return - $.on inputs['archiveSources'], 'change', -> + $.on inputs['archiveLists'], 'change', -> $.set 'lastarchivecheck', 0 Conf['lastarchivecheck'] = 0 $.id('lastarchivecheck').textContent = 'never' diff --git a/src/General/Settings/Advanced.html b/src/General/Settings/Advanced.html index df8592a02..211f0294d 100644 --- a/src/General/Settings/Advanced.html +++ b/src/General/Settings/Advanced.html @@ -15,7 +15,7 @@ Archive Lists: Each line below should be an archive list in this format or a URL to load an archive list from.
Archive properties can be overriden by another item with the same uid (or if absent, its name). - + Last updated: diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 5028af64d..9307977f6 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -762,7 +762,7 @@ Config = 'Custom Board Navigation': true archives: - archiveSources: 'https://4chan-x.just-believe.in/json/archives.json' + archiveLists: 'https://4chan-x.just-believe.in/json/archives.json' lastarchivecheck: 0 archiveAutoUpdate: true diff --git a/src/css/style.css b/src/css/style.css index 5efb726c7..de789d606 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -602,7 +602,7 @@ div[data-checked="false"] > .suboption-list { .section-advanced textarea { height: 150px; } -.section-advanced textarea[name="archiveSources"] { +.section-advanced textarea[name="archiveLists"] { height: 75px; } .section-advanced .archive-cell {