diff options
Diffstat (limited to 'public/assets/js/lib/views/stream/hootform.js')
| -rw-r--r-- | public/assets/js/lib/views/stream/hootform.js | 8 |
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(); |
