applied again a patch [ #416612 ] catagory item all not in option tags

Thanks to Tony Puglisi (tony-devel)
This commit is contained in:
Lars Kneschke 2001-04-17 09:30:08 +00:00
parent cc5cffded5
commit bfc67191a7

View File

@ -37,16 +37,16 @@
function cat_option($cat_id='',$notall=False,$java=True) { function cat_option($cat_id='',$notall=False,$java=True) {
global $phpgw_info; global $phpgw_info;
if ($java) { if ($java) {
$jselect = " onChange=\"this.form.submit();\""; $jselect = ' onChange="this.form.submit();"';
} }
// Setup all and none first // Setup all and none first
$cats_link = "\n<select name=\"cat_id\"$jselect>\n"; $cats_link = "\n" .'<select name="cat_id"' .$jselect .">\n";
if (!$notall) { if (!$notall) {
$cats_link .= "<option value=\"\""; $cats_link .= '<option value=""';
if ($cat_id=="all") { if ($cat_id=="all") {
$cats_link .= " selected"; $cats_link .= ' selected';
} }
$cats_link .= "></option>".lang("all")."\n"; $cats_link .= '>'.lang("all").'</option>'."\n";
} }
// Get global and app-specific category listings // Get global and app-specific category listings