diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 04:25:19 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 04:25:19 +0100 |
| commit | 4c775f12ff6eda48fc22bec9ed336e60c1a0e07e (patch) | |
| tree | 792b3906107442dc6823440fa0bf21a7bea1a224 /public/assets/js/lib/views/index/hootbox.js | |
| parent | 6702125f12820c504ae18114f99fee3e13b2616f (diff) | |
cssssssss
Diffstat (limited to 'public/assets/js/lib/views/index/hootbox.js')
| -rw-r--r-- | public/assets/js/lib/views/index/hootbox.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js index cdd3eb0..64fc756 100644 --- a/public/assets/js/lib/views/index/hootbox.js +++ b/public/assets/js/lib/views/index/hootbox.js @@ -15,6 +15,10 @@ var HootBox = FormView.extend({ }, load: function(comments){ + if (!comments || !comments.length) { + this.$el.hide() + return + } comments.forEach(this.appendComment.bind(this)) }, |
