set multiselectbox size=4, as some browsers dont show scrollbars if its under 4

This commit is contained in:
Ralf Becker 2006-03-09 18:21:22 +00:00
parent 4581ff7c93
commit ceb34ebfee

View File

@ -225,7 +225,7 @@
} }
if ($lines == 1 && $this->account_selection == 'selectbox') if ($lines == 1 && $this->account_selection == 'selectbox')
{ {
$html .= '<a href="#" onclick="'."if (selectBox = document.getElementById('$element_id')) { selectBox.size=3; selectBox.multiple=true; } return false;".'">'. $html .= '<a href="#" onclick="'."if (selectBox = document.getElementById('$element_id')) { selectBox.size=4; selectBox.multiple=true; } return false;".'">'.
$this->html->image('phpgwapi','users',lang('select multiple accounts')).'</a>'; $this->html->image('phpgwapi','users',lang('select multiple accounts')).'</a>';
} }
if($need_js_popup && !$GLOBALS['egw_info']['flags']['uiaccountsel']['addOption_installed']) if($need_js_popup && !$GLOBALS['egw_info']['flags']['uiaccountsel']['addOption_installed'])