1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Fix expand-too-long error with new <p> markup

This commit is contained in:
8chan 2015-04-21 07:07:34 -07:00
parent 347cb5aa47
commit 8aa8babd6e

View File

@ -17,7 +17,7 @@ $(function() {
e.preventDefault(); e.preventDefault();
var url = $(this).attr('href'); var url = $(this).attr('href');
var body = $(this).parent().parent(); var body = $(this).parents('.body');
$.ajax({ $.ajax({
url: url, url: url,
@ -26,8 +26,6 @@ $(function() {
var content = $(data).find('#'+url.split('#')[1]).parent().parent().find(".body").first().html(); var content = $(data).find('#'+url.split('#')[1]).parent().parent().find(".body").first().html();
body.html(content); body.html(content);
var post = $(body).parents('.post');
} }
}); });
}); });