Created
March 14, 2012 14:08
-
-
Save aranw/2036706 to your computer and use it in GitHub Desktop.
Bootbox.js Confirm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on("click", "a.reset",function(e) { | |
e.preventDefault(); | |
bootbox.confirm("Are you sure you want to reset this users password?", function(confirmed) { | |
if (confirmed) | |
{ | |
$.ajax({ | |
url: e.currentTarget.href, | |
success: function() | |
{ | |
location.reload(); | |
} | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment