Code cleanup: Remove unnecessary escaping.

This commit is contained in:
ccd0 2014-12-20 17:31:22 -08:00
parent 42c59df4e1
commit 709246fbdd
3 changed files with 5 additions and 6 deletions

View File

@ -228,7 +228,6 @@ module.exports = (grunt) ->
nonstandard: true
# XXX Temporarily suppress lots of existing warnings until we fix them.
'-W018': true
'-W044': true
'-W053': true
'-W084': true
'-W058': true

View File

@ -21,9 +21,9 @@ Build =
g.VIEW is 'thread' and g.BOARD.ID is boardID and g.THREADID is +threadID
postURL: (boardID, threadID, postID) ->
if Build.sameThread boardID, threadID
"\#p#{postID}"
"#p#{postID}"
else
"/#{boardID}/thread/#{threadID}\#p#{postID}"
"/#{boardID}/thread/#{threadID}#p#{postID}"
postFromObject: (data, boardID) ->
o =
# id
@ -151,7 +151,7 @@ Build =
quoteLink = if Build.sameThread boardID, threadID
"javascript:quote('#{+postID}');"
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)
typeLC = type.toLowerCase()

View File

@ -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']
"http://catalog.neet.tv/#{board}"
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
"/#{board}/catalog"
index: (board=g.BOARD.ID) ->
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
"/#{board}/"