mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Add onsubmit to cat select
This commit is contained in:
parent
3659fba29a
commit
5acca29f4d
@ -33,11 +33,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Return a select form element with the categories options in it
|
||||
function cat_option($cat_id='',$name='cat_id',$notall=False) {
|
||||
// Return a select form element with the categories option dialog in it
|
||||
function cat_option($cat_id='',$name='cat_id',$notall=False,$java=True) {
|
||||
global $phpgw_info;
|
||||
if ($java) {
|
||||
$jselect = " onChange=\"this.form.submit();\"";
|
||||
//$jsubopen = "<noscript>";
|
||||
//$jsubclose = "</noscript>";
|
||||
}
|
||||
// Setup all and none first
|
||||
$cats_link = "<select name=\"".$name."\">";
|
||||
$cats_link = "<select name=\"".$name."\"$jselect>";
|
||||
if (!$notall) {
|
||||
$cats_link .= "<option value =\"all\"";
|
||||
if ($cat_id=="all") {
|
||||
|
Loading…
Reference in New Issue
Block a user