diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 01:45:57 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 01:45:57 +0100 |
| commit | 6702125f12820c504ae18114f99fee3e13b2616f (patch) | |
| tree | f775b3d409951e1078547d380fc87a2da69cddb5 /public/assets/js/lib/views/details/comments.js | |
| parent | 7b6a999eb2ae4ade37acd045cf8f806b4021d4c1 (diff) | |
moreeeeee styling
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
| -rw-r--r-- | public/assets/js/lib/views/details/comments.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(){ |
