mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
update notify_* calls to use Notify
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
@@ -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.");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user