Skip to content

Instantly share code, notes, and snippets.

View duanewilson's full-sized avatar

Duane Wilson duanewilson

View GitHub Profile
Verifying that +duanewilson is my blockchain ID. https://onename.com/duanewilson
@duanewilson
duanewilson / app.js
Last active September 20, 2022 06:14
Fix BootStrap3 modal AJAX caching issues when loading remote content. Yes, I know it's deprecated.
$('#myModal').on('loaded.bs.modal', function (e) {
$('#myModal').removeData();
});
$(document).ready(function(){
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});
});