summaryrefslogtreecommitdiff
path: root/plugins/af_psql_trgm/init.js
blob: af337ca6b5403e66f53dfbf39eaa4efedae0a002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
	}
};