diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 04:41:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 04:41:13 +0100 |
| commit | 041efed20500c145a639d8303c2a0e770bba4552 (patch) | |
| tree | 8a8c00ac93589036b1b917a8f3e58e06670e1f33 /public/assets/js/lib/views/details/comments.js | |
| parent | d4ece4ab1f461653c53bb56f23406c553ea78dd3 (diff) | |
hoot order!
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
| -rw-r--r-- | public/assets/js/lib/views/details/comments.js | 10 |
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){ |
