2011-12-21 04:46:39 +00:00
|
|
|
function shareArticle(id) {
|
|
|
|
try {
|
|
|
|
if (dijit.byId("shareArticleDlg"))
|
|
|
|
dijit.byId("shareArticleDlg").destroyRecursive();
|
|
|
|
|
2012-12-23 10:52:18 +00:00
|
|
|
var query = "backend.php?op=pluginhandler&plugin=share&method=shareArticle¶m=" + param_escape(id);
|
2011-12-21 04:46:39 +00:00
|
|
|
|
|
|
|
dialog = new dijit.Dialog({
|
|
|
|
id: "shareArticleDlg",
|
|
|
|
title: __("Share article by URL"),
|
|
|
|
style: "width: 600px",
|
|
|
|
href: query});
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("emailArticle", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|