2013-03-19 14:32:49 +00:00
|
|
|
function mailtoArticle(id) {
|
|
|
|
try {
|
|
|
|
if (!id) {
|
2018-12-02 05:32:13 +00:00
|
|
|
const ids = Headlines.getSelected();
|
2013-03-19 14:32:49 +00:00
|
|
|
|
|
|
|
if (ids.length == 0) {
|
|
|
|
alert(__("No articles are selected."));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
id = ids.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dijit.byId("emailArticleDlg"))
|
|
|
|
dijit.byId("emailArticleDlg").destroyRecursive();
|
|
|
|
|
2018-11-30 05:39:45 +00:00
|
|
|
const query = "backend.php?op=pluginhandler&plugin=mailto&method=emailArticle¶m=" + param_escape(id);
|
2013-03-19 14:32:49 +00:00
|
|
|
|
|
|
|
dialog = new dijit.Dialog({
|
|
|
|
id: "emailArticleDlg",
|
|
|
|
title: __("Forward article by email"),
|
|
|
|
style: "width: 600px",
|
|
|
|
href: query});
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("emailArticle", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|