summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/comments.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
-rw-r--r--public/assets/js/lib/views/details/comments.js3
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(){