summaryrefslogtreecommitdiff
path: root/plugins/share/share.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/share/share.js')
-rw-r--r--plugins/share/share.js10
1 files changed, 2 insertions, 8 deletions
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);