summaryrefslogtreecommitdiff
path: root/plugins/share
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/share
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/share')
-rw-r--r--plugins/share/share.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/share/share.js b/plugins/share/share.js
index 507f27f84..3fc42d654 100644
--- a/plugins/share/share.js
+++ b/plugins/share/share.js
@@ -1,11 +1,10 @@
+/* global Plugins, xhrJson, Notify, fox, xhrPost, __ */
+
Plugins.Share = {
shareArticle: function(id) {
- if (dijit.byId("shareArticleDlg"))
- dijit.byId("shareArticleDlg").destroyRecursive();
-
const query = "backend.php?op=pluginhandler&plugin=share&method=shareArticle&param=" + encodeURIComponent(id);
- const dialog = new dijit.Dialog({
+ const dialog = new fox.SingleUseDialog({
id: "shareArticleDlg",
title: __("Share article by URL"),
newurl: function () {
@@ -73,7 +72,4 @@ Plugins.Share = {
const img = $("SHARE-IMG-" + id);
img.addClassName("shared");
}
-};
-
-
-
+}