From da1a3c2cc5621bccdb844cfbd03e377ada079fa9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 13:05:59 +0300 Subject: remove ok = confirm() thing --- plugins/share/share.js | 10 ++-------- plugins/share/share_prefs.js | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'plugins/share') diff --git a/plugins/share/share.js b/plugins/share/share.js index 09c973ed8..0fb2f1244 100644 --- a/plugins/share/share.js +++ b/plugins/share/share.js @@ -10,10 +10,7 @@ function shareArticle(id) { title: __("Share article by URL"), style: "width: 600px", newurl: function() { - - var ok = confirm(__("Generate new share URL for this article?")); - - if (ok) { + if (confirm(__("Generate new share URL for this article?"))) { notify_progress("Trying to change URL...", true); @@ -51,10 +48,7 @@ function shareArticle(id) { }, unshare: function() { - - var ok = confirm(__("Remove sharing for this article?")); - - if (ok) { + if (confirm(__("Remove sharing for this article?"))) { notify_progress("Trying to unshare...", true); diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js index 9efe291f9..e4c22262a 100644 --- a/plugins/share/share_prefs.js +++ b/plugins/share/share_prefs.js @@ -1,8 +1,5 @@ function clearArticleAccessKeys() { - - var ok = confirm(__("This will invalidate all previously shared article URLs. Continue?")); - - if (ok) { + if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) { notify_progress("Clearing URLs..."); var query = "?op=pluginhandler&plugin=share&method=clearArticleKeys"; -- cgit v1.2.3