Created
February 15, 2012 21:55
-
-
Save mikedfunk/1839256 to your computer and use it in GitHub Desktop.
twitter bootstrap backdrop
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
/** | |
* backdrop function. | |
* | |
* creates twitter bootstrap backdrop, optional callback | |
* | |
* @access public | |
* @param mixed callback | |
* @return void | |
*/ | |
function backdrop(callback) | |
{ | |
$('body').append('<div class="modal-backdrop"></div>'); | |
if (callback !== undefined) {callback();} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment