Add catalog JSON URL.
This commit is contained in:
parent
725d7d458e
commit
e98fed9e5f
@ -63,6 +63,9 @@ SW.tinyboard =
|
||||
threadsListJSON: ({siteID, boardID}) ->
|
||||
root = Conf['siteProperties'][siteID]?.root
|
||||
if root then "#{root}#{boardID}/threads.json" else ''
|
||||
catalogJSON: ({siteID, boardID}) ->
|
||||
root = Conf['siteProperties'][siteID]?.root
|
||||
if root then "#{root}#{boardID}/catalog.json" else ''
|
||||
|
||||
selectors:
|
||||
board: 'form[name="postcontrols"]'
|
||||
|
||||
@ -6,6 +6,7 @@ SW.yotsuba =
|
||||
threadJSON: ({boardID, threadID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/thread/#{threadID}.json"
|
||||
threadsListJSON: ({boardID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/threads.json"
|
||||
archiveListJSON: ({boardID}) -> if BoardConfig.isArchived(boardID) then "#{location.protocol}//a.4cdn.org/#{boardID}/archive.json" else ''
|
||||
catalogJSON: ({boardID}) -> "#{location.protocol}//a.4cdn.org/#{boardID}/catalog.json"
|
||||
|
||||
selectors:
|
||||
board: '.board'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user