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 @@