summaryrefslogtreecommitdiff
path: root/plugins/share
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 20:56:30 +0300
commit526389b2d380177490605037fdc3a24ebc688fac (patch)
tree65d79cebf0811e8927efeffac9f1e11b4552a63f /plugins/share
parent495248dd9783985750591c050d055ac4c2cf1712 (diff)
update notify_* calls to use Notify
Diffstat (limited to 'plugins/share')
-rw-r--r--plugins/share/share.js8
-rw-r--r--plugins/share/share_prefs.js4
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/share/share.js b/plugins/share/share.js
index 4a6a65ce6..a22e01715 100644
--- a/plugins/share/share.js
+++ b/plugins/share/share.js
@@ -12,7 +12,7 @@ function shareArticle(id) {
newurl: function() {
if (confirm(__("Generate new share URL for this article?"))) {
- notify_progress("Trying to change URL...", true);
+ Notify.progress("Trying to change URL...", true);
const query = { op: "pluginhandler", plugin: "share", method: "newkey", id: id };
@@ -34,10 +34,10 @@ function shareArticle(id) {
const img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("notshared.png", "share.png");
- notify('');
+ Notify.close();
} else {
- notify_error("Could not change URL.");
+ Notify.error("Could not change URL.");
}
}
});
@@ -47,7 +47,7 @@ function shareArticle(id) {
unshare: function() {
if (confirm(__("Remove sharing for this article?"))) {
- notify_progress("Trying to unshare...", true);
+ Notify.progress("Trying to unshare...", true);
const query = { op: "pluginhandler", plugin: "share", method: "unshare", id: id };
diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js
index 79ca37284..92975f8f4 100644
--- a/plugins/share/share_prefs.js
+++ b/plugins/share/share_prefs.js
@@ -1,11 +1,11 @@
function clearArticleAccessKeys() {
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
- notify_progress("Clearing URLs...");
+ Notify.progress("Clearing URLs...");
const query = { op: "pluginhandler", plugin: "share", method: "clearArticleKeys" };
xhrPost("backend.php", query, () => {
- notify_info("Shared URLs cleared.");
+ Notify.info("Shared URLs cleared.");
});
}