From d466284fabe945dbc3c8034ac1468bf97b38ed94 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 09:02:44 +0300 Subject: * customizeCSS: client dialog * remove hardcoded width from most dialogs (move to css) * add helper to easily get dialog from its widget * rework some dialog buttons to use current object instead of calling dialog by name --- plugins/af_psql_trgm/init.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/af_psql_trgm/init.js') diff --git a/plugins/af_psql_trgm/init.js b/plugins/af_psql_trgm/init.js index af337ca6b..a22e673f6 100644 --- a/plugins/af_psql_trgm/init.js +++ b/plugins/af_psql_trgm/init.js @@ -1,16 +1,13 @@ +/* global dijit, Plugins, __ */ + Plugins.Psql_Trgm = { showRelated: function (id) { const query = "backend.php?op=pluginhandler&plugin=af_psql_trgm&method=showrelated¶m=" + encodeURIComponent(id); - if (dijit.byId("trgmRelatedDlg")) - dijit.byId("trgmRelatedDlg").destroyRecursive(); - - dialog = new dijit.Dialog({ - id: "trgmRelatedDlg", + const dialog = new dijit.Dialog({ title: __("Related articles"), - style: "width: 600px", execute: function () { - + // }, href: query, }); -- cgit v1.2.3