summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bille <thomas.bille625@gmail.com>2017-07-10 14:33:41 +0200
committerThomas Bille <thomas.bille@canonical.com>2017-10-17 09:09:45 +0100
commit75bc40f7a08e11fc115e4986bb45fc314d49632a (patch)
treea02aa73b35f3b20c26c818e8d46602ba3f4d092b
parent59c3ea91fd42f00ba58fc35d5c49e1ea65435b8d (diff)
downloadnextcloud-server-75bc40f7a08e11fc115e4986bb45fc314d49632a.tar.gz
nextcloud-server-75bc40f7a08e11fc115e4986bb45fc314d49632a.zip
Destroy modal when closed
Signed-off-by: Thomas Bille <contact@tbille.fr>
-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) {