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/Article.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'js/Article.js') diff --git a/js/Article.js b/js/Article.js index 538377f45..d6e7bbad9 100644 --- a/js/Article.js +++ b/js/Article.js @@ -1,6 +1,6 @@ 'use strict' -/* global __, ngettext, App, Headlines, xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Ajax */ +/* global __, ngettext, App, Headlines, xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Ajax, fox */ const Article = { _scroll_reset_timeout: false, @@ -250,12 +250,9 @@ const Article = { return false; }, editTags: function (id) { - if (dijit.byId("editTagsDlg")) - dijit.byId("editTagsDlg").destroyRecursive(); - xhrPost("backend.php", {op: "article", method: "editarticletags", param: id}, (transport) => { - const dialog = new dijit.Dialog({ + const dialog = new fox.SingleUseDialog({ id: "editTagsDlg", title: __("Edit article Tags"), content: transport.responseText, -- cgit v1.2.3-54-g00ecf