Skip to content

Instantly share code, notes, and snippets.

@aazbeltran
Created April 1, 2015 15:07
Show Gist options
  • Save aazbeltran/8350e6c4a85eee18cf8a to your computer and use it in GitHub Desktop.
Save aazbeltran/8350e6c4a85eee18cf8a to your computer and use it in GitHub Desktop.
Modal sobre Modal
<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