From d0a4e541c393e17e25fc0783188472cf9157277e Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Thu, 9 Dec 2021 11:02:17 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04481=20Move=20hierarchical=20key=20brows?= =?UTF-8?q?er=20expand/collapse=20buttons=20to=20bottom=20button=20panel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/ui.extkeywidget.class.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/ui.extkeywidget.class.inc.php b/application/ui.extkeywidget.class.inc.php index 77c4362ea..b4df87abe 100644 --- a/application/ui.extkeywidget.class.inc.php +++ b/application/ui.extkeywidget.class.inc.php @@ -1008,7 +1008,7 @@ JS if ($bHasChildLeafs) { - $oPage->add('
'.Dict::S("UI:Treeview:CollapseAll").' | '.Dict::S("UI:Treeview:ExpandAll").'
'); + $oPage->add(''.Dict::S("UI:Treeview:CollapseAll").''.Dict::S("UI:Treeview:ExpandAll").''); } $oPage->add(''); @@ -1036,12 +1036,16 @@ $('#dlg_tree_$this->iId').dialog({ }, { text: "$sCancelButtonLabel", - click: function() { $(this).dialog( "close" ); } }, + click: function() { $(this).dialog( "close" ); } + }, ], resizeStop: oACWidget_{$this->iId}.OnHKResize, close: oACWidget_{$this->iId}.OnHKClose }); + +$('#dlg_tree_$this->iId + .ui-dialog-buttonpane .ui-dialog-buttonset').prepend($('#treecontrolid')); + JS ); }