From 6702125f12820c504ae18114f99fee3e13b2616f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 11 Dec 2017 01:45:57 +0100 Subject: moreeeeee styling --- public/assets/js/lib/views/details/comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/details/comments.js') diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js index 4bd2eb7..c031efc 100644 --- a/public/assets/js/lib/views/details/comments.js +++ b/public/assets/js/lib/views/details/comments.js @@ -10,6 +10,7 @@ var CommentsView = FormView.extend({ initialize: function(){ this.__super__.initialize.call(this) this.template = this.$(".template").html() + this.$formRow = this.$("#comment_form") }, load: function(comments){ @@ -33,7 +34,7 @@ var CommentsView = FormView.extend({ appendComment: function(comment){ var $el = $( this.parse(comment) ) - this.$el.append($el) + $el.insertBefore(this.$formRow) }, success: function(){ -- cgit v1.2.3-70-g09d2