From 526389b2d380177490605037fdc3a24ebc688fac Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 20:56:30 +0300 Subject: update notify_* calls to use Notify --- plugins/af_psql_trgm/init.php | 2 +- plugins/af_readability/init.php | 2 +- plugins/af_redditimgur/init.php | 2 +- plugins/af_zz_imgproxy/init.php | 2 +- plugins/import_export/import_export.js | 8 ++++---- plugins/mail/init.php | 2 +- plugins/mail/mail.js | 2 +- plugins/note/note.js | 4 ++-- plugins/nsfw/init.php | 2 +- plugins/share/share.js | 8 ++++---- plugins/share/share_prefs.js | 4 ++-- 11 files changed, 19 insertions(+), 19 deletions(-) (limited to 'plugins') diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index 7787d5b37..514f5731a 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -150,7 +150,7 @@ class Af_Psql_Trgm extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index e0c57d093..8c17738c9 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -61,7 +61,7 @@ class Af_Readability extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 2b8415dd0..1958e83be 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -45,7 +45,7 @@ class Af_RedditImgur extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 1c1e99ae4..ca49e94a7 100755 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -216,7 +216,7 @@ class Af_Zz_ImgProxy extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); diff --git a/plugins/import_export/import_export.js b/plugins/import_export/import_export.js index 780f6bfc7..56a2a5c3e 100644 --- a/plugins/import_export/import_export.js +++ b/plugins/import_export/import_export.js @@ -14,7 +14,7 @@ function exportData() { style: "width: 600px", prepare: function() { - notify_progress("Loading, please wait..."); + Notify.progress("Loading, please wait..."); new Ajax.Request("backend.php", { parameters: "op=pluginhandler&plugin=import_export&method=exportrun&offset=" + exported, @@ -53,7 +53,7 @@ function exportData() { exception_error("exportData", e, transport.responseText); } - notify(''); + Notify.close(); } }); @@ -81,7 +81,7 @@ function dataImportComplete(iframe) { Element.hide(iframe); - notify(''); + Notify.close(); if (dijit.byId('dataImportDlg')) dijit.byId('dataImportDlg').destroyRecursive(); @@ -112,7 +112,7 @@ function importData() { alert(__("Please choose the file first.")); return false; } else { - notify_progress("Importing, please wait...", true); + Notify.progress("Importing, please wait...", true); Element.show("data_upload_iframe"); diff --git a/plugins/mail/init.php b/plugins/mail/init.php index 5294931c7..d8f92853e 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -45,7 +45,7 @@ class Mail extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); diff --git a/plugins/mail/mail.js b/plugins/mail/mail.js index af0cf3552..b72289c2a 100644 --- a/plugins/mail/mail.js +++ b/plugins/mail/mail.js @@ -29,7 +29,7 @@ function emailArticle(id) { if (error) { alert(__('Error sending email:') + ' ' + error); } else { - notify_info('Your message has been sent.'); + Notify.info('Your message has been sent.'); dialog.hide(); } diff --git a/plugins/note/note.js b/plugins/note/note.js index c1f317b52..836481c40 100644 --- a/plugins/note/note.js +++ b/plugins/note/note.js @@ -12,10 +12,10 @@ function editArticleNote(id) { style: "width: 600px", execute: function() { if (this.validate()) { - notify_progress("Saving article note...", true); + Notify.progress("Saving article note...", true); xhrJson("backend.php", this.attr('value'), (reply) => { - notify(''); + Notify.close(); dialog.hide(); if (reply) { diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index 6a1ae3c65..53b9ee479 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -63,7 +63,7 @@ class NSFW extends Plugin { new Ajax.Request('backend.php', { parameters: dojo.objectToQuery(this.getValues()), onComplete: function(transport) { - notify_info(transport.responseText); + Notify.info(transport.responseText); } }); //this.reset(); 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."); }); } -- cgit v1.2.3