mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 01:21:28 +00:00
* 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
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user