Code cleanup: Remove unnecessary escaping.
This commit is contained in:
parent
42c59df4e1
commit
709246fbdd
@ -228,7 +228,6 @@ module.exports = (grunt) ->
|
|||||||
nonstandard: true
|
nonstandard: true
|
||||||
# XXX Temporarily suppress lots of existing warnings until we fix them.
|
# XXX Temporarily suppress lots of existing warnings until we fix them.
|
||||||
'-W018': true
|
'-W018': true
|
||||||
'-W044': true
|
|
||||||
'-W053': true
|
'-W053': true
|
||||||
'-W084': true
|
'-W084': true
|
||||||
'-W058': true
|
'-W058': true
|
||||||
|
|||||||
@ -21,9 +21,9 @@ Build =
|
|||||||
g.VIEW is 'thread' and g.BOARD.ID is boardID and g.THREADID is +threadID
|
g.VIEW is 'thread' and g.BOARD.ID is boardID and g.THREADID is +threadID
|
||||||
postURL: (boardID, threadID, postID) ->
|
postURL: (boardID, threadID, postID) ->
|
||||||
if Build.sameThread boardID, threadID
|
if Build.sameThread boardID, threadID
|
||||||
"\#p#{postID}"
|
"#p#{postID}"
|
||||||
else
|
else
|
||||||
"/#{boardID}/thread/#{threadID}\#p#{postID}"
|
"/#{boardID}/thread/#{threadID}#p#{postID}"
|
||||||
postFromObject: (data, boardID) ->
|
postFromObject: (data, boardID) ->
|
||||||
o =
|
o =
|
||||||
# id
|
# id
|
||||||
@ -151,7 +151,7 @@ Build =
|
|||||||
quoteLink = if Build.sameThread boardID, threadID
|
quoteLink = if Build.sameThread boardID, threadID
|
||||||
"javascript:quote('#{+postID}');"
|
"javascript:quote('#{+postID}');"
|
||||||
else
|
else
|
||||||
"/#{boardID}/thread/#{threadID}\#q#{postID}"
|
"/#{boardID}/thread/#{threadID}#q#{postID}"
|
||||||
|
|
||||||
icons = for type in ['Sticky', 'Closed', 'Archived'] when o["is#{type}"] and !(type is 'Closed' and o.isArchived)
|
icons = for type in ['Sticky', 'Closed', 'Archived'] when o["is#{type}"] and !(type is 'Closed' and o.isArchived)
|
||||||
typeLC = type.toLowerCase()
|
typeLC = type.toLowerCase()
|
||||||
|
|||||||
@ -52,12 +52,12 @@ CatalogLinks =
|
|||||||
if Conf['External Catalog'] and board in ['a', 'c', 'g', 'biz', 'k', 'm', 'o', 'p', 'v', 'vg', 'vr', 'w', 'wg', 'cm', '3', 'adv', 'an', 'asp', 'cgl', 'ck', 'co', 'diy', 'fa', 'fit', 'gd', 'int', 'jp', 'lit', 'mlp', 'mu', 'n', 'out', 'po', 'sci', 'sp', 'tg', 'toy', 'trv', 'tv', 'vp', 'wsg', 'x', 'f', 'pol', 's4s', 'lgbt']
|
if Conf['External Catalog'] and board in ['a', 'c', 'g', 'biz', 'k', 'm', 'o', 'p', 'v', 'vg', 'vr', 'w', 'wg', 'cm', '3', 'adv', 'an', 'asp', 'cgl', 'ck', 'co', 'diy', 'fa', 'fit', 'gd', 'int', 'jp', 'lit', 'mlp', 'mu', 'n', 'out', 'po', 'sci', 'sp', 'tg', 'toy', 'trv', 'tv', 'vp', 'wsg', 'x', 'f', 'pol', 's4s', 'lgbt']
|
||||||
"http://catalog.neet.tv/#{board}"
|
"http://catalog.neet.tv/#{board}"
|
||||||
else if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
else if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||||
if g.BOARD.ID is board and g.VIEW is 'index' then '#catalog' else "/#{board}/\#catalog"
|
if g.BOARD.ID is board and g.VIEW is 'index' then '#catalog' else "/#{board}/#catalog"
|
||||||
else
|
else
|
||||||
"/#{board}/catalog"
|
"/#{board}/catalog"
|
||||||
|
|
||||||
index: (board=g.BOARD.ID) ->
|
index: (board=g.BOARD.ID) ->
|
||||||
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||||
if g.BOARD.ID is board and g.VIEW is 'index' then '#index' else "/#{board}/\#index"
|
if g.BOARD.ID is board and g.VIEW is 'index' then '#index' else "/#{board}/#index"
|
||||||
else
|
else
|
||||||
"/#{board}/"
|
"/#{board}/"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user