]> git.wh0rd.org - tt-rss.git/blame - plugins/af_psql_trgm/init.js
plugins: run eslint const/let fixes
[tt-rss.git] / plugins / af_psql_trgm / init.js
CommitLineData
7ebb2daf
AD
1function showTrgmRelated(id) {
2 try {
3
dbb4cdbe 4 const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated&param=" + param_escape(id);
7ebb2daf 5
f52879fe
AD
6 if (dijit.byId("trgmRelatedDlg"))
7 dijit.byId("trgmRelatedDlg").destroyRecursive();
7ebb2daf
AD
8
9 dialog = new dijit.Dialog({
f52879fe 10 id: "trgmRelatedDlg",
7ebb2daf
AD
11 title: __("Related articles"),
12 style: "width: 600px",
13 execute: function() {
14
15 },
16 href: query,
17 });
18
19 dialog.show();
20
21 } catch (e) {
22 exception_error("showTrgmRelated", e);
23 }
24}
25