From bdc246710a089e6d6645a966cd6011420ba74bcd Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 3 Jan 2016 15:48:59 +1000 Subject: [PATCH] * comments form --- public/theme/js/main.js | 2 +- templates/comments/new.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/theme/js/main.js b/public/theme/js/main.js index aab6783..bc71fb0 100644 --- a/public/theme/js/main.js +++ b/public/theme/js/main.js @@ -24,7 +24,7 @@ $(document).ready(function() { e.preventDefault(); $.post('/comments/add', $(this).serialize()) .done(function(data) { location.reload(); }) - .fail(function(data) { $('#comments #resp').val(data); }); + .fail(function(data) { $('#comments #resp').html(data.responseText); }); }); // form submit }); // on form load }); // #cadd click diff --git a/templates/comments/new.html.ep b/templates/comments/new.html.ep index 46b513a..6aa2207 100644 --- a/templates/comments/new.html.ep +++ b/templates/comments/new.html.ep @@ -4,6 +4,6 @@

- +