summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/index.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 22:03:49 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 22:03:49 +0200
commit35b9318fbf27f4025dd50be2c0a59046dfab3baf (patch)
tree6633007600429297e5072f7eace2c3b8150f692f /public/assets/js/lib/views/stream/index.js
parenta785cfa3d2977e80a7419894e3767e9b8f45fe5b (diff)
hootform styling and fixing
Diffstat (limited to 'public/assets/js/lib/views/stream/index.js')
-rw-r--r--public/assets/js/lib/views/stream/index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/stream/index.js b/public/assets/js/lib/views/stream/index.js
index 1504554..0a2aeb9 100644
--- a/public/assets/js/lib/views/stream/index.js
+++ b/public/assets/js/lib/views/stream/index.js
@@ -42,8 +42,11 @@ var StreamView = View.extend({
},
onComment: function (comment) {
- this.data.hootbox.comments.push(comment);
- this.data.hootstream.comments.push(comment);
+ if (comment.thread === 1) {
+ this.data.hootbox.push(comment);
+ } else {
+ this.data.comments.push(comment);
+ }
this.populate(this.data);
},