diff options
author | Andrew Dolgov <[email protected]> | 2010-11-06 11:13:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-06 11:13:07 +0300 |
commit | f72a7b6696286b2b1bb6a3d0ae33bab49e3552d0 (patch) | |
tree | 807a9c997115679dee6fd856fd7b781c7acd581a /viewfeed.js | |
parent | 31a53903e635ae84ae1551d52772e75f2380b416 (diff) |
allow forwarding multiple articles by email
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/viewfeed.js b/viewfeed.js index ac76be70b..1e9a11a16 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -2265,6 +2265,17 @@ function publishWithNote(id, def_note) { function emailArticle(id) { try { + if (!id) { + var ids = getSelectedArticleIds2(); + + if (ids.length == 0) { + alert(__("No articles are selected.")); + return; + } + + id = ids.toString(); + } + displayDlg('emailArticle', id, function () { document.forms['article_email_form'].destination.focus(); @@ -2280,7 +2291,7 @@ function emailArticle(id) { } } -function emailArticleDo(id) { +function emailArticleDo() { try { var f = document.forms['article_email_form']; |