fix ajax display when posting first comment on a page

This commit is contained in:
codeshell 2017-10-30 12:53:13 +01:00
parent bd1799cc7e
commit ee89c2bdca
3 changed files with 11 additions and 16 deletions

View file

@ -154,7 +154,7 @@ jQuery(document).ready(function () {
if ($( "div[data-id='" + response.data.parent_id + "']" ).length > 0) {
$( "div[data-id='" + response.data.parent_id + "']" ).first().after(newMedia);
} else {
$( "div.comments" ).last().prepend(newMedia);
$( "#comments" ).prepend(newMedia);
}
}
setTimeout(function () {