Last active
May 27, 2016 14:49
-
-
Save johnnaegle/c3b59aca82e50903a815667ab1e67abb to your computer and use it in GitHub Desktop.
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
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