Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#deleteButton').click
- (
- function()
- {
- if (confirm("Are you sure you want to delete this item?\n"+$('.selected').find('span').first().html()))
- {
- $.post
- (
- '<%= URL %>',
- {
- "delete": $('.selected').find('.id').html(),
- "__REQUESTDIGEST": $('input#__REQUESTDIGEST').attr('value')
- },
- function()
- {
- location.reload();
- }
- );
- }
- return false;
- }
- );
Add Comment
Please, Sign In to add comment