Created
April 10, 2015 11:14
-
-
Save gtrias/14b398b802a9d353a5ae to your computer and use it in GitHub Desktop.
twitter-bootstrap-remote-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
// Remove contents when close to avoid show the same while next modal is loading | |
// Source: http://stackoverflow.com/a/22051611/865222 | |
$(document).on("hidden.bs.modal", ".modal:not(.local-modal)", function (e) { | |
$(e.target).removeData("bs.modal").find(".modal-content").empty(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment