Remove race condition waiting for proper event instead of fixed time.

This commit is contained in:
Lapo Luchini
2014-11-22 22:51:51 +01:00
parent 355084daeb
commit 259d699551

View File

@@ -48,9 +48,9 @@ $(window).load(function() {
function dismissModal(modal) {
modal.modal('hide');
setTimeout(function() {
modal.on('hidden.bs.modal', function() {
modal.remove();
}, 200);
});
}
// End Helper Functions