*yawn*
This commit is contained in:
parent
7afe8e150e
commit
86b5b0931c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -346,11 +346,10 @@ Settings =
|
|||||||
boards = {}
|
boards = {}
|
||||||
for name, archive of Redirect.archives
|
for name, archive of Redirect.archives
|
||||||
for boardID in archive.boards
|
for boardID in archive.boards
|
||||||
data = boards[boardID] or= {
|
data = boards[boardID] or=
|
||||||
thread: []
|
thread: []
|
||||||
post: []
|
post: []
|
||||||
file: []
|
file: []
|
||||||
}
|
|
||||||
data.thread.push name
|
data.thread.push name
|
||||||
data.post.push name if archive.software is 'foolfuuka'
|
data.post.push name if archive.software is 'foolfuuka'
|
||||||
data.file.push name if archive.files.contains boardID
|
data.file.push name if archive.files.contains boardID
|
||||||
@ -361,7 +360,6 @@ Settings =
|
|||||||
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
|
||||||
rows.push row
|
|
||||||
|
|
||||||
boardOptions.push $.el 'option',
|
boardOptions.push $.el 'option',
|
||||||
textContent: "/#{boardID}/"
|
textContent: "/#{boardID}/"
|
||||||
@ -369,11 +367,8 @@ Settings =
|
|||||||
selected: boardID is g.BOARD.ID
|
selected: boardID is g.BOARD.ID
|
||||||
|
|
||||||
data = boards[boardID]
|
data = boards[boardID]
|
||||||
$.add row, [
|
$.add row, Settings.addArchiveCell boardID, data, item for item in ['thread', 'post', 'file']
|
||||||
Settings.addArchiveCell boardID, data, 'thread'
|
|
||||||
Settings.addArchiveCell boardID, data, 'post'
|
|
||||||
Settings.addArchiveCell boardID, data, 'file'
|
|
||||||
]
|
|
||||||
$.add $('tbody', section), rows
|
$.add $('tbody', section), rows
|
||||||
|
|
||||||
boardSelect = $('#archive-board-select', section)
|
boardSelect = $('#archive-board-select', section)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user