summaryrefslogtreecommitdiff
path: root/js/SingleUseDialog.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 15:22:10 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 15:22:10 +0300
commit3d11c61f326ef133427f6f37de4429e879c725f2 (patch)
tree472a31623e184383ae61d189662fb29a3808f454 /js/SingleUseDialog.js
parent219cc9a0ab0da20cb82df2647508e29f7f9d1515 (diff)
* OPML import: don't reload everything, just feed tree
* dialogs: use auto-destroying dialog for almost all dialogs instead of destroying them manually * some general dialog-related cleanup
Diffstat (limited to 'js/SingleUseDialog.js')
-rw-r--r--js/SingleUseDialog.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/SingleUseDialog.js b/js/SingleUseDialog.js
new file mode 100644
index 000000000..944f24c6f
--- /dev/null
+++ b/js/SingleUseDialog.js
@@ -0,0 +1,8 @@
+/* global dijit, define */
+define(["dojo/_base/declare", "dijit/Dialog"], function (declare) {
+ return declare("fox.SingleUseDialog", dijit.Dialog, {
+ onHide: function() {
+ this.destroyRecursive();
+ }
+ });
+});