Fix inlining glitches

This commit is contained in:
topkek 2014-11-05 23:13:06 +00:00
parent edb74a2033
commit 1b3e922424

View File

@ -74,7 +74,7 @@ onready(function(){
.css('z-index', '100') .css('z-index', '100')
.css('left', '0') .css('left', '0')
.addClass('reply').addClass('post') .addClass('reply').addClass('post')
.appendTo(link.parents('div.post')) .appendTo(link.closest('div.post'))
// shrink expanded images // shrink expanded images
newPost.find('div.file a[data-expanded="true"]').each(function() { newPost.find('div.file a[data-expanded="true"]').each(function() {
@ -86,7 +86,7 @@ onready(function(){
if (link.hasClass('mentioned-'+id)) { if (link.hasClass('mentioned-'+id)) {
var postLinks = newPost.find('div.body a:not([rel="nofollow"])'); var postLinks = newPost.find('div.body a:not([rel="nofollow"])');
if (postLinks.length > 1) { if (postLinks.length > 1) {
var originalPost = link.parents('div.post').attr('id').replace("reply_", ""); var originalPost = link.closest('div.post').attr('id').replace("reply_", "").replace("inline_", "");
postLinks.each(function() { postLinks.each(function() {
if ($(this).text() == ">>"+originalPost) { if ($(this).text() == ">>"+originalPost) {
$(this).addClass('dashed-underline'); $(this).addClass('dashed-underline');