From b1a59116735f3e82225141da52c99175220d90bd Mon Sep 17 00:00:00 2001 From: James Campos Date: Fri, 3 Oct 2014 13:05:45 -0700 Subject: [PATCH] fix when quote is last element --- js/inline.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/inline.js b/js/inline.js index 3eac588e..26b13f91 100644 --- a/js/inline.js +++ b/js/inline.js @@ -17,9 +17,8 @@ : '#reply_' + postNum var node = this.className - // XXX post hover element is added to the quoting post - ? $root.find('> .files, > .inline').first() - : this.nextSibling + ? $root.find('> .intro') + : this var link = { node: node, @@ -54,7 +53,7 @@ "class": 'inline post', id: 'inline_' + link.postNum }) - $clone.insertBefore(link.node) + $clone.insertAfter(link.node) } $('head').append(