diff --git a/pinry/static/js/pin-form.js b/pinry/static/js/pin-form.js index ef5b631..9bf29af 100644 --- a/pinry/static/js/pin-form.js +++ b/pinry/static/js/pin-form.js @@ -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