Revert "allow all archives to be disabled, sort archives with HTTPS support first"
This reverts commit 54687be452c48f5d94f90bc185994f9567349e81.
This commit is contained in:
parent
7d7c6712f9
commit
5d70306979
@ -317,21 +317,21 @@ Settings =
|
|||||||
$.on $('#apply-css', section), 'click', Settings.usercss
|
$.on $('#apply-css', section), 'click', Settings.usercss
|
||||||
|
|
||||||
archBoards = {}
|
archBoards = {}
|
||||||
for {name, boards, files, software, https, withCredentials} in Redirect.archives
|
for {name, boards, files, software, withCredentials} in Redirect.archives
|
||||||
rank = if withCredentials then 2 else if https then 0 else 1
|
|
||||||
for boardID in boards
|
for boardID in boards
|
||||||
unless o = archBoards[boardID]
|
o = archBoards[boardID] or=
|
||||||
o = archBoards[boardID] = {}
|
thread: [[], []]
|
||||||
for item in ['thread', 'post', 'file']
|
post: [[], []]
|
||||||
o[item] = [[], [], []]
|
file: [[], []]
|
||||||
o.thread[rank].push name
|
i = +!!withCredentials
|
||||||
o.post[rank].push name if software is 'foolfuuka'
|
o.thread[i].push name
|
||||||
o.file[rank].push name if boardID in files
|
o.post[i].push name if software is 'foolfuuka'
|
||||||
|
o.file[i].push name if boardID in files
|
||||||
for boardID, o of archBoards
|
for boardID, o of archBoards
|
||||||
for item in ['thread', 'post', 'file']
|
for item in ['thread', 'post', 'file']
|
||||||
rank = if o[item][0].length + o[item][1].length is 0 then 1 else 2
|
if o[item][0].length is 0 and o[item][1].length isnt 0
|
||||||
o[item][rank].push 'disabled'
|
o[item][0].push 'disabled'
|
||||||
o[item] = [].concat.apply [], o[item]
|
o[item] = o[item][0].concat(o[item][1])
|
||||||
|
|
||||||
rows = []
|
rows = []
|
||||||
boardOptions = []
|
boardOptions = []
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<span class=note>Disabled selections indicate that only one archive is available for that board and redirection type.</span>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user