2015-01-19 12:12:40 +00:00
|
|
|
function showTrgmRelated(id) {
|
|
|
|
try {
|
|
|
|
|
2018-12-02 17:07:57 +00:00
|
|
|
const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated¶m=" + encodeURIComponent(id);
|
2015-01-19 12:12:40 +00:00
|
|
|
|
2015-01-19 12:46:15 +00:00
|
|
|
if (dijit.byId("trgmRelatedDlg"))
|
|
|
|
dijit.byId("trgmRelatedDlg").destroyRecursive();
|
2015-01-19 12:12:40 +00:00
|
|
|
|
|
|
|
dialog = new dijit.Dialog({
|
2015-01-19 12:46:15 +00:00
|
|
|
id: "trgmRelatedDlg",
|
2015-01-19 12:12:40 +00:00
|
|
|
title: __("Related articles"),
|
|
|
|
style: "width: 600px",
|
|
|
|
execute: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
href: query,
|
|
|
|
});
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("showTrgmRelated", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|