agriget/plugins/af_psql_trgm/init.js

22 lines
456 B
JavaScript
Raw Normal View History

2019-03-22 22:17:29 +08:00
Plugins.Psql_Trgm = {
showRelated: function (id) {
const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated&param=" + encodeURIComponent(id);
if (dijit.byId("trgmRelatedDlg"))
dijit.byId("trgmRelatedDlg").destroyRecursive();
dialog = new dijit.Dialog({
id: "trgmRelatedDlg",
title: __("Related articles"),
style: "width: 600px",
execute: function () {
},
href: query,
});
dialog.show();
}
};