Created
March 3, 2011 01:38
-
-
Save dodozhang21/852156 to your computer and use it in GitHub Desktop.
deleteConfirmation - delete action links bind
This file contains 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
$('a.deleteConfirmation').click(function() { | |
var name = $(this).parent().parent().children('td.name').html(); // a.delete -> td -> tr -> td.name | |
name = jQuery.trim(name); | |
$("#jQueryDeleteConfirmationModalWindow").html('Are you sure you wish to delete ' + name + '?'); | |
$("#jQueryDeleteConfirmationModalWindow").dialog('open'); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment