From d2e76933c2d81a7502d66baa926fd36420edad8a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 19 Dec 2017 01:45:01 +0100 Subject: fix hootbox for real --- public/assets/js/lib/views/index/hootbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/assets/js/lib/views/index/hootbox.js') diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js index 2338153..89b5ef8 100644 --- a/public/assets/js/lib/views/index/hootbox.js +++ b/public/assets/js/lib/views/index/hootbox.js @@ -48,8 +48,8 @@ var HootBox = FormView.extend({ return errors.length ? errors : null }, - success: function(comment){ - this.prependComment(comment) + success: function(data){ + this.prependComment(data.comment) this.$("[name=comment]").val("") } }) \ No newline at end of file -- cgit v1.2.3-70-g09d2