summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/hootform.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 17:42:10 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 17:42:10 +0200
commit515d432e5143abc4c12193568b3a6f8461b64242 (patch)
tree7b35212a427305e501e245d463ba64a0f761f84f /public/assets/js/lib/views/stream/hootform.js
parent77e4a4a015ef7d1d338f7badb68efab83f19de4d (diff)
render
Diffstat (limited to 'public/assets/js/lib/views/stream/hootform.js')
-rw-r--r--public/assets/js/lib/views/stream/hootform.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/stream/hootform.js b/public/assets/js/lib/views/stream/hootform.js
index 368e616..f13cc55 100644
--- a/public/assets/js/lib/views/stream/hootform.js
+++ b/public/assets/js/lib/views/stream/hootform.js
@@ -18,6 +18,14 @@ var HootForm = FormView.extend({
this.$el.hide();
},
+ toggle: function (state) {
+ if (state) {
+ this.show();
+ } else {
+ this.hide();
+ }
+ },
+
load: function (comments) {
if (!comments || (!comments.length && !this.options.required)) {
this.$el.hide();