Destroy modal when closed

Signed-off-by: Thomas Bille <contact@tbille.fr>
pull/5673/head
Thomas Bille 8 years ago committed by Thomas Bille
parent 59c3ea91fd
commit 75bc40f7a0
  1. 4
      core/js/jquery.ocdialog.js

@ -212,8 +212,10 @@
// Ugly hack to catch remaining keyup events.
setTimeout(function() {
self._trigger('close', self);
self.$dialog.hide();
}, 200);
self.$dialog.remove();
this.destroy();
},
destroy: function() {
if(this.$title) {

Loading…
Cancel
Save