summaryrefslogtreecommitdiff
path: root/plugins/note
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 /plugins/note
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 'plugins/note')
-rw-r--r--plugins/note/note.js9
1 files changed, 4 insertions, 5 deletions
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&param=" + 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
+};