Created
April 1, 2015 15:07
-
-
Save aazbeltran/8350e6c4a85eee18cf8a to your computer and use it in GitHub Desktop.
Modal sobre Modal
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
<script> | |
$('#modal2').on('show.bs.modal', function() { | |
$('#modal1').css('opacity', .5); | |
$('#modal1').unbind(); | |
}); | |
$('#modal2').on('hidden.bs.modal', function() { | |
$('#modal1').css('opacity', 1); | |
$('#modal1').removeData("modal").modal({}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment