block email_article action if mail plugin is not enabled
This commit is contained in:
parent
b8cb4d08b3
commit
0b2f8843e5
1 changed files with 5 additions and 1 deletions
|
@ -735,7 +735,11 @@ function hotkey_handler(e) {
|
||||||
scrollArticle(-50);
|
scrollArticle(-50);
|
||||||
return true;
|
return true;
|
||||||
case "email_article":
|
case "email_article":
|
||||||
emailArticle();
|
if (typeof emailArticle != "undefined") {
|
||||||
|
emailArticle();
|
||||||
|
} else {
|
||||||
|
alert(__("Please enable mail plugin first."));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
case "select_all":
|
case "select_all":
|
||||||
selectArticles('all');
|
selectArticles('all');
|
||||||
|
|
Loading…
Reference in a new issue