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.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js
index 473fb22..4c217a4 100644
--- a/public/assets/js/lib/views/details/comments.js
+++ b/public/assets/js/lib/views/details/comments.js
@@ -14,8 +14,14 @@ var CommentsView = FormView.extend({
this.$formRow = this.$("#comment_form")
},
- load: function(comments){
- comments.forEach(this.appendComment.bind(this))
+ load: function(comments, thread){
+ if (thread.settings.hootbox) {
+ comments.forEach(this.prependComment.bind(this))
+ this.$el.prepend(this.$formRow)
+ }
+ else {
+ comments.forEach(this.appendComment.bind(this))
+ }
},
parse: function(comment){