From 3d11c61f326ef133427f6f37de4429e879c725f2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 15:22:10 +0300 Subject: * 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 --- js/SingleUseDialog.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 js/SingleUseDialog.js (limited to 'js/SingleUseDialog.js') 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(); + } + }); +}); -- cgit v1.2.3-54-g00ecf