Skip to content

Instantly share code, notes, and snippets.

@johnnaegle
Last active May 27, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnaegle/c3b59aca82e50903a815667ab1e67abb to your computer and use it in GitHub Desktop.
Save johnnaegle/c3b59aca82e50903a815667ab1e67abb to your computer and use it in GitHub Desktop.
BootstrapDialog.show({
title: 'Yo DAWG! A popup on your popup',
message: function(dialog) {
return $('<div>I heard you like that</div>');
},
buttons: [
{
label: 'Close',
cssClass: 'btn btn-default btn-sm',
action: function(dialogItself){
dialogItself.close();
}
},
],
onshow: function(dialog){
dialog.$modal.css('visibility', 'hidden');
},
onshown: function(dialog){
setTimeout(function() {
var tier = $('.bootstrap-dialog').length - 1;
dialog.$modal.prev(".modal-backdrop")
.css("z-index", 1030 + tier * 30);
dialog.$modal
.css("z-index", 50000 + tier * 30);
dialog.$modal.css('visibility', 'visible');
}, 100);
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment