From: Andrew Dolgov Date: Fri, 28 Dec 2012 11:44:22 +0000 (+0400) Subject: block email_article action if mail plugin is not enabled X-Git-Tag: 1.7.0~86 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0b2f8843e5938232d07c908e45aa97f845762823;p=tt-rss.git block email_article action if mail plugin is not enabled --- diff --git a/js/tt-rss.js b/js/tt-rss.js index fb80f489..240d5f53 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -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');