ttrss/plugins/mailto/init.js

33 lines
639 B
JavaScript
Raw Normal View History

function mailtoArticle(id) {
try {
if (!id) {
const ids = Headlines.getSelectedArticleIds2();
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&param=" + param_escape(id);
dialog = new dijit.Dialog({
id: "emailArticleDlg",
title: __("Forward article by email"),
style: "width: 600px",
href: query});
dialog.show();
} catch (e) {
exception_error("emailArticle", e);
}
}