get op from input value

This commit is contained in:
James Campos authored and czaks committed 2014-10-07 03:27:33 +02:00
1 parent 3de119e417
commit 274ac0965a
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@
if ($clone.length) if ($clone.length)
return $clone.remove() return $clone.remove()
var OP = location.pathname.match(/(\d+).html/)[1] var OP = $('input[name="thread"]').val()
var selector = postNum === OP var selector = postNum === OP
? '.op .body' ? '.op .body'
: '#reply_' + postNum + ' .body' : '#reply_' + postNum + ' .body'