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