|
|
@ -24,7 +24,7 @@ $(document).ready(function() { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
$.post('/comments/add', $(this).serialize()) |
|
|
|
$.post('/comments/add', $(this).serialize()) |
|
|
|
.done(function(data) { location.reload(); }) |
|
|
|
.done(function(data) { location.reload(); }) |
|
|
|
.fail(function(data) { $('#comments #resp').val(data); }); |
|
|
|
.fail(function(data) { $('#comments #resp').html(data.responseText); }); |
|
|
|
}); // form submit
|
|
|
|
}); // form submit
|
|
|
|
}); // on form load
|
|
|
|
}); // on form load
|
|
|
|
}); // #cadd click
|
|
|
|
}); // #cadd click
|
|
|
|