summaryrefslogtreecommitdiff
path: root/plugins/af_psql_trgm/init.js
blob: f84bb4877f26df52149dc3c4125891ea15d2bceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function showTrgmRelated(id) {
	try {

		const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated&param=" + param_escape(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();

	} catch (e) {
		exception_error("showTrgmRelated", e);
	}
}