Fix the URL var not being actually used.
This commit is contained in:
parent
1412fca138
commit
1e592dc24f
@ -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()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user