1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 12:25:56 +00:00

add mail and share plugins

This commit is contained in:
Andrew Dolgov
2011-12-21 08:46:39 +04:00
parent 8e70d965a8
commit 1baac2803c
11 changed files with 345 additions and 339 deletions

21
js/share_button.js Normal file
View File

@@ -0,0 +1,21 @@
function shareArticle(id) {
try {
if (dijit.byId("shareArticleDlg"))
dijit.byId("shareArticleDlg").destroyRecursive();
var query = "backend.php?op=rpc&method=buttonPlugin&plugin=share&plugin_method=shareArticle&param=" + param_escape(id);
dialog = new dijit.Dialog({
id: "shareArticleDlg",
title: __("Share article by URL"),
style: "width: 600px",
href: query});
dialog.show();
} catch (e) {
exception_error("emailArticle", e);
}
}