diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 33cfa44e5..dab07031b 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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 diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 4039c2e13..e19b1305e 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -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() diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index 81524b6d6..a788657c1 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -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}/"