Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var comment_delete = function (pk) {
- $.ajax({
- url: '{}/comment/{}'.format(location.pathname, pk),
- method: 'DELETE'
- }).done(function () {
- $('#comment_{}'.format(pk)).parent().remove();
- }).fail(function (response) {
- alert(response.responseText);
- })
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement