fix ajax display when posting first comment on a page
This commit is contained in:
parent
bd1799cc7e
commit
ee89c2bdca
3 changed files with 11 additions and 16 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue