Holy shit fuck me with a chainsaw I'm so retarded I deserve it
(but really plz don't, I'm just tired and this is a tired-zix commit) Halp
This commit is contained in:
parent
43bcc64681
commit
6ed2f67fe2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -17,7 +17,7 @@ Redirect =
|
|||||||
|
|
||||||
for boardID, record of Conf['selectedArchives']
|
for boardID, record of Conf['selectedArchives']
|
||||||
for type, id of record when (archive = archives[id])
|
for type, id of record when (archive = archives[id])
|
||||||
boards = if type is 'file' then archive.file else archive.boards
|
boards = if type is 'file' then archive.files else archive.boards
|
||||||
continue unless boardID in boards
|
continue unless boardID in boards
|
||||||
o[type][boardID] = archive.data
|
o[type][boardID] = archive.data
|
||||||
|
|
||||||
|
|||||||
@ -333,20 +333,20 @@ Settings =
|
|||||||
$.on $('input[name="Custom CSS"]', section), 'change', Settings.togglecss
|
$.on $('input[name="Custom CSS"]', section), 'change', Settings.togglecss
|
||||||
$.on $.id('apply-css'), 'click', Settings.usercss
|
$.on $.id('apply-css'), 'click', Settings.usercss
|
||||||
|
|
||||||
boards = {}
|
archBoards = {}
|
||||||
for name, archive of Redirect.archives
|
for {name, boards, files, data} in Redirect.archives
|
||||||
for boardID in archive.boards
|
for boardID in boards
|
||||||
data = boards[boardID] or=
|
o = archBoards[boardID] or=
|
||||||
thread: []
|
thread: []
|
||||||
post: []
|
post: []
|
||||||
file: []
|
file: []
|
||||||
data.thread.push name
|
o.thread.push name
|
||||||
data.post.push name if archive.software is 'foolfuuka'
|
o.post.push name if data.software is 'foolfuuka'
|
||||||
data.file.push name if boardID in archive.files
|
o.file.push name if boardID in files
|
||||||
|
|
||||||
rows = []
|
rows = []
|
||||||
boardOptions = []
|
boardOptions = []
|
||||||
for boardID in Object.keys(boards).sort() # Alphabetical order
|
for boardID in Object.keys(archBoards).sort() # Alphabetical order
|
||||||
row = $.el 'tr',
|
row = $.el 'tr',
|
||||||
className: "board-#{boardID}"
|
className: "board-#{boardID}"
|
||||||
row.hidden = boardID isnt g.BOARD.ID
|
row.hidden = boardID isnt g.BOARD.ID
|
||||||
@ -356,8 +356,8 @@ Settings =
|
|||||||
value: "board-#{boardID}"
|
value: "board-#{boardID}"
|
||||||
selected: boardID is g.BOARD.ID
|
selected: boardID is g.BOARD.ID
|
||||||
|
|
||||||
data = boards[boardID]
|
o = archBoards[boardID]
|
||||||
$.add row, Settings.addArchiveCell boardID, data, item for item in ['thread', 'post', 'file']
|
$.add row, Settings.addArchiveCell boardID, o, item for item in ['thread', 'post', 'file']
|
||||||
rows.push row
|
rows.push row
|
||||||
|
|
||||||
$.add $('tbody', section), rows
|
$.add $('tbody', section), rows
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user