diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index be44fc13..099a3833 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -108,7 +108,7 @@ class comment_Core { // @todo Set proper Content-Type in a central place (REST_Controller::dispatch?). static function get_comments($item_id) { $comments = ORM::factory('comment')->where('item_id', $item_id) - ->orderby('datetime', 'desc') + ->orderby('datetime', 'asc') ->find_all(); if (!$comments->count()) { diff --git a/themes/default/js/comment.js b/themes/default/js/comment.js index 60e885fb..259b4826 100644 --- a/themes/default/js/comment.js +++ b/themes/default/js/comment.js @@ -8,8 +8,8 @@ function ajaxify_comment_form() { $("#gComments form").replaceWith(xhr.responseText); if (xhr.status == 201) { $.get(xhr.getResponseHeader("Location"), function(data, textStatus) { - $("#gComments div.gBlockContent ul:first").append(data); - $("#gComments div.gBlockContent ul:first li:last").hide().slideDown(); + $("#gComments .gBlockContent ul:first").append("