summaryrefslogtreecommitdiffstats
path: root/core/js/jquery.ocdialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/jquery.ocdialog.js')
-rw-r--r--core/js/jquery.ocdialog.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js
index 555b35e59ff..f3a54119e78 100644
--- a/core/js/jquery.ocdialog.js
+++ b/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) {