Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created February 15, 2012 21:55
Show Gist options
  • Save mikedfunk/1839256 to your computer and use it in GitHub Desktop.
Save mikedfunk/1839256 to your computer and use it in GitHub Desktop.
twitter bootstrap backdrop
/**
* 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