From 0b2f8843e5938232d07c908e45aa97f845762823 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 28 Dec 2012 15:44:22 +0400 Subject: [PATCH] block email_article action if mail plugin is not enabled --- js/tt-rss.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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');