diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-21 11:37:11 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-21 11:37:18 +0200 |
| commit | a930387282551c58c04a563cd5b432ffb0334043 (patch) | |
| tree | a08374237f88e6d68f7a398b80b9aa588eb05ff1 /public/assets | |
| parent | 9f73794615e3707e9374df1ba130b902d804a1cc (diff) | |
comment form appends files
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) } }) |
