diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 15:22:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 15:22:10 +0300 |
commit | 3d11c61f326ef133427f6f37de4429e879c725f2 (patch) | |
tree | 472a31623e184383ae61d189662fb29a3808f454 /js/App.js | |
parent | 219cc9a0ab0da20cb82df2647508e29f7f9d1515 (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/App.js')
-rw-r--r-- | js/App.js | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,6 +1,6 @@ 'use strict'; -/* global __, Article, Ajax, Headlines, Filters */ +/* global __, Article, Ajax, Headlines, Filters, fox */ /* global xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Feeds, Cookie */ /* global CommonDialogs, Plugins, Effect */ @@ -313,7 +313,7 @@ const App = { }, helpDialog: function(topic) { xhrPost("backend.php", {op: "backend", method: "help", topic: topic}, (transport) => { - const dialog = new dijit.Dialog({ + const dialog = new fox.SingleUseDialog({ title: __("Help"), content: transport.responseText, }); @@ -333,7 +333,7 @@ const App = { let dialog = dijit.byId("infoBox"); if (!dialog) { - dialog = new dijit.Dialog({ + dialog = new fox.SingleUseDialog({ title: title, id: 'infoBox', onCancel: function () { @@ -577,9 +577,6 @@ const App = { } try { - if (dijit.byId("exceptionDlg")) - dijit.byId("exceptionDlg").destroyRecursive(); - let stack_msg = ""; if (error.stack) @@ -599,7 +596,7 @@ const App = { </div> </div>`; - const dialog = new dijit.Dialog({ + const dialog = new fox.SingleUseDialog({ id: "exceptionDlg", title: params.title || __("Unhandled exception"), content: content |