mirror of
https://github.com/pinry/pinry.git
synced 2026-01-19 21:52:06 +01:00
Remove race condition waiting for proper event instead of fixed time.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user