From 1e592dc24f00a2c119108f425ca8ca801481201c Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 22 Jun 2013 18:32:24 +0200 Subject: [PATCH] Fix the URL var not being actually used. --- src/Posting/QR.coffee | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index dec55d596..7362be864 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -1113,15 +1113,11 @@ QR = QR.cooldown.set {req, post, isReply} - if threadID is postID # new thread - URL = "/#{g.BOARD}/res/#{threadID}" + URL = if threadID is postID # new thread + "/#{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 - URL = "/#{g.BOARD}/res/#{threadID}#p#{postID}" - if URL - if Conf['Open Post in New Tab'] - $.open "/#{g.BOARD}/res/#{threadID}" - else - window.location = "/#{g.BOARD}/res/#{threadID}" + "/#{g.BOARD}/res/#{threadID}#p#{postID}" + (if Conf['Open Post in New Tab'] then $.open else location.assign) URL if URL QR.status()