Created
November 28, 2016 18:29
-
-
Save tdhartwick/4fe0af4304620bb52bffa1b82d7ed788 to your computer and use it in GitHub Desktop.
This will automatically open your modal and re-instantiate a modal when clicking the "x".
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
// Opens your Modal | |
$('** My Modal Class **').foundation('open'); | |
// Re-instantiates Modal | |
$('** My Modal Class **').on('closed.zf.reveal', function() { | |
setTimeout(function() { | |
$('** My Modal Class **').foundation('open'); | |
}, 100); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment