function showTrgmRelated(id) {
try {
- var query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated¶m=" + param_escape(id);
+ const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated¶m=" + param_escape(id);
- if (dijit.byId("editNoteDlg"))
- dijit.byId("editNoteDlg").destroyRecursive();
+ if (dijit.byId("trgmRelatedDlg"))
+ dijit.byId("trgmRelatedDlg").destroyRecursive();
dialog = new dijit.Dialog({
- id: "editNoteDlg",
+ id: "trgmRelatedDlg",
title: __("Related articles"),
style: "width: 600px",
execute: function() {