diff options
Diffstat (limited to 'public/assets')
| -rw-r--r-- | public/assets/js/lib/views/details/commentform.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/details/commentform.js b/public/assets/js/lib/views/details/commentform.js index d4a9149..2b76171 100644 --- a/public/assets/js/lib/views/details/commentform.js +++ b/public/assets/js/lib/views/details/commentform.js @@ -54,6 +54,9 @@ var CommentForm = FormView.extend({ // window.location.reload() console.log(this) console.log(this.parent) - this.parent.comments.load([data.comment]) + console.log(data) + data.comment && this.parent.comments.load([data.comment]) + data.files && this.parent.files.load(data.files) + data.files && this.parent.gallery.load(data.files) } }) |
