From 6560a9d137dda5d0e8ed35ee5d383dfaefc18d7e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 3 Jul 2014 08:41:37 +0000 Subject: [PATCH] fixed not working "Search ..." in old eTemplate nextmatch-account-filter ("noPrint" class caused necessary "uiaccountselection" class not to be added) --- phpgwapi/inc/class.uiaccountsel.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.uiaccountsel.inc.php b/phpgwapi/inc/class.uiaccountsel.inc.php index 709d507043..2d7d5dfef2 100644 --- a/phpgwapi/inc/class.uiaccountsel.inc.php +++ b/phpgwapi/inc/class.uiaccountsel.inc.php @@ -92,7 +92,9 @@ class uiaccountsel $multi_size = abs($lines); $lines = 1; } - $options .= ' class="uiaccountselection '.$this->account_selection.'"'; // to be able to style and select it with jQuery + // add "uiaccountselection" and account_selection-type class, to be able to style and select it with jQuery + if (strpos($options, 'class="') === false) $options .= ' class=""'; + $options = str_replace('class="', 'class="uiaccountselection '.$this->account_selection.' ', $options); if ($this->account_selection == 'none') // dont show user-selection at all! { @@ -282,7 +284,6 @@ class uiaccountsel $html .= html::submit_button('search','Search accounts',$js,false, ' title="'.html::htmlspecialchars(lang('Search accounts')). '" class="uiaccountselection_trigger" id="'.$element_id.'_popup"','search','phpgwapi','button'); - $need_js_popup = True; } elseif (!$only_groups && ($lines == 1 || $lines > 0 && $this->account_selection == 'primary_group')) {