Browse Source

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

pull/77/head
Lapo Luchini 10 years ago
parent
commit
259d699551
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pinry/static/js/pin-form.js

+ 2
- 2
pinry/static/js/pin-form.js View File

@@ -48,9 +48,9 @@ $(window).load(function() {


function dismissModal(modal) { function dismissModal(modal) {
modal.modal('hide'); modal.modal('hide');
setTimeout(function() {
modal.on('hidden.bs.modal', function() {
modal.remove(); modal.remove();
}, 200);
});
} }
// End Helper Functions // End Helper Functions




Loading…
Cancel
Save