From 274ac0965a6085c009fccbde1e427746d8ff4501 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 23 Sep 2014 21:40:32 -0700 Subject: [PATCH] get op from input value --- js/inline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/inline.js b/js/inline.js index 6b373dce..863aefbb 100644 --- a/js/inline.js +++ b/js/inline.js @@ -8,7 +8,7 @@ if ($clone.length) return $clone.remove() - var OP = location.pathname.match(/(\d+).html/)[1] + var OP = $('input[name="thread"]').val() var selector = postNum === OP ? '.op .body' : '#reply_' + postNum + ' .body'