archiveSources -> archiveLists
This commit is contained in:
parent
b0291c80c5
commit
ba6a47dfaf
@ -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
|
||||
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<b>Archive Lists</b>: Each line below should be an archive list in <a href="https://github.com/MayhemYDG/archives.json/blob/gh-pages/CONTRIBUTING.md" target="_blank">this format</a> or a URL to load an archive list from.<br>
|
||||
Archive properties can be overriden by another item with the same <code>uid</code> (or if absent, its <code>name</code>).
|
||||
</div>
|
||||
<textarea name="archiveSources" class="field" spellcheck="false"></textarea>
|
||||
<textarea name="archiveLists" class="field" spellcheck="false"></textarea>
|
||||
<button id="update-archives">Update now</button> Last updated: <time id="lastarchivecheck"></time> <label><input type="checkbox" name="archiveAutoUpdate"> Auto-update</label>
|
||||
</fieldset>
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user