14👍
I assume that you are using Twitter Bootstrap
Bootstrap 3
$('#cart').on('hidden.bs.modal', function () {
window.location.reload(true);
})
Bootstrap 2.3.2
$('#cart').on('hidden', function () {
window.location.reload(true);
})
5👍
As far as I can tell, jquery.loadmodal.js
has bootstrap.js
as a dependency, so its modals are still subject to bootstrap’s methods.
In that case, you can simply bind to hidden.bs.modal
...
$('#yourModal').on('hidden.bs.modal', function () {
location.reload();
});
...
- Gunicorn or uwsgi both ~30x slower than Django WSGI server
- How to display a custom error page for HTTP status 405 (method not allowed) in Django when using @require_POST
0👍
Where you open the nyroModal window, just add this callback function:
callbacks: {
afterClose: function() {
window.location.reload();
}
}
Source:stackexchange.com