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:
Zixaphir 2014-01-12 00:00:33 -07:00
parent 43bcc64681
commit 6ed2f67fe2
4 changed files with 53 additions and 55 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ Redirect =
for boardID, record of Conf['selectedArchives']
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
o[type][boardID] = archive.data

View File

@ -333,20 +333,20 @@ Settings =
$.on $('input[name="Custom CSS"]', section), 'change', Settings.togglecss
$.on $.id('apply-css'), 'click', Settings.usercss
boards = {}
for name, archive of Redirect.archives
for boardID in archive.boards
data = boards[boardID] or=
archBoards = {}
for {name, boards, files, data} in Redirect.archives
for boardID in boards
o = archBoards[boardID] or=
thread: []
post: []
file: []
data.thread.push name
data.post.push name if archive.software is 'foolfuuka'
data.file.push name if boardID in archive.files
o.thread.push name
o.post.push name if data.software is 'foolfuuka'
o.file.push name if boardID in files
rows = []
boardOptions = []
for boardID in Object.keys(boards).sort() # Alphabetical order
for boardID in Object.keys(archBoards).sort() # Alphabetical order
row = $.el 'tr',
className: "board-#{boardID}"
row.hidden = boardID isnt g.BOARD.ID
@ -356,8 +356,8 @@ Settings =
value: "board-#{boardID}"
selected: boardID is g.BOARD.ID
data = boards[boardID]
$.add row, Settings.addArchiveCell boardID, data, item for item in ['thread', 'post', 'file']
o = archBoards[boardID]
$.add row, Settings.addArchiveCell boardID, o, item for item in ['thread', 'post', 'file']
rows.push row
$.add $('tbody', section), rows