]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/share/share.js
remove ok = confirm() thing
[tt-rss.git] / plugins / share / share.js
index 09c973ed843f8cc838e5a546f8baa4cf386dc7f6..0fb2f1244e2ea8eb69a4e637b3030d202fa34df2 100644 (file)
@@ -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);