Created
March 3, 2011 01:32
-
-
Save dodozhang21/852146 to your computer and use it in GitHub Desktop.
deleteConfirmation - jQuery UI modal window init
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
// create the jQuery modal window and set autoOpen to false | |
$("#jQueryDeleteConfirmationModalWindow").dialog({ | |
title: "Delete Confirmation", | |
autoOpen: false, // set this to false so we can manually open it | |
dialogClass: "jQueryDeleteConfirmationModalWindow", | |
closeOnEscape: false, | |
draggable: false, | |
width: 460, | |
height: 260, | |
modal: true, | |
buttons: { | |
"Yes, I'm sure": function() { | |
$( this ).dialog( "close" ); | |
}, | |
Cancel: function() { | |
$( this ).dialog( "close" ); | |
} | |
}, | |
resizable: false, | |
open: function() { | |
// scrollbar fix for IE | |
$('body').css('overflow','hidden'); | |
}, | |
close: function() { | |
// reset overflow | |
$('body').css('overflow','auto'); | |
} | |
}); // end of dialog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment