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 --- plugins/note/note.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/note') diff --git a/plugins/note/note.js b/plugins/note/note.js index fec7b04be..ab2ed9208 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -1,11 +1,10 @@ +/* global Plugins, xhrJson, Notify, fox, __ */ + Plugins.Note = { edit: function(id) { const query = "backend.php?op=pluginhandler&plugin=note&method=edit¶m=" + encodeURIComponent(id); - if (dijit.byId("editNoteDlg")) - dijit.byId("editNoteDlg").destroyRecursive(); - - const dialog = new dijit.Dialog({ + const dialog = new fox.SingleUseDialog({ id: "editNoteDlg", title: __("Edit article note"), execute: function () { @@ -36,4 +35,4 @@ Plugins.Note = { dialog.show(); } -}; \ No newline at end of file +}; -- cgit v1.2.3