Fix the URL var not being actually used.

This commit is contained in:
Mayhem 2013-06-22 18:32:24 +02:00
parent 1412fca138
commit 1e592dc24f

View File

@ -1113,15 +1113,11 @@ QR =
QR.cooldown.set {req, post, isReply} QR.cooldown.set {req, post, isReply}
if threadID is postID # new thread URL = if threadID is postID # new thread
URL = "/#{g.BOARD}/res/#{threadID}" "/#{g.BOARD}/res/#{threadID}"
else if g.VIEW is 'index' and !QR.cooldown.auto and Conf['Open Post in New Tab'] # replying from the index else if g.VIEW is 'index' and !QR.cooldown.auto and Conf['Open Post in New Tab'] # replying from the index
URL = "/#{g.BOARD}/res/#{threadID}#p#{postID}" "/#{g.BOARD}/res/#{threadID}#p#{postID}"
if URL (if Conf['Open Post in New Tab'] then $.open else location.assign) URL if URL
if Conf['Open Post in New Tab']
$.open "/#{g.BOARD}/res/#{threadID}"
else
window.location = "/#{g.BOARD}/res/#{threadID}"
QR.status() QR.status()