diff options
| author | James Campos <james.r.campos@gmail.com> | 2014-10-03 13:05:45 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-10-07 03:27:35 +0200 |
| commit | b1a59116735f3e82225141da52c99175220d90bd (patch) | |
| tree | 1afe9b2a17c5bcbb7ea3e849338547c83187eaa5 | |
| parent | aea23e99b6b650f152bbddac47c2e18310949565 (diff) | |
fix when quote is last element
| -rw-r--r-- | js/inline.js | 7 |
1 files 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( |
