get op from input value

This commit is contained in:
James Campos 2014-09-23 21:40:32 -07:00 committed by czaks
parent 3de119e417
commit 274ac0965a

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'