From a930387282551c58c04a563cd5b432ffb0334043 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 21 Jun 2018 11:37:11 +0200 Subject: comment form appends files --- public/assets/js/lib/views/details/commentform.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib') 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) } }) -- cgit v1.2.3-70-g09d2