]> git.wh0rd.org Git - tt-rss.git/commitdiff
block email_article action if mail plugin is not enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 28 Dec 2012 11:44:22 +0000 (15:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 28 Dec 2012 11:44:22 +0000 (15:44 +0400)
js/tt-rss.js

index fb80f48993c9c9a38857d7ea0dda8d82ecc5429d..240d5f530dcbcee066e95a7591145ba39b10a69e 100644 (file)
@@ -735,7 +735,11 @@ function hotkey_handler(e) {
                        scrollArticle(-50);
                        return true;
                case "email_article":
-                       emailArticle();
+                       if (typeof emailArticle != "undefined") {
+                               emailArticle();
+                       } else {
+                               alert(__("Please enable mail plugin first."));
+                       }
                        return true;
                case "select_all":
                        selectArticles('all');