From 5acca29f4df7e295bd20f5a617f84786bd3e2fbd Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 28 Mar 2001 12:53:39 +0000 Subject: [PATCH] Add onsubmit to cat select --- addressbook/inc/functions.inc.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index de5a57921d..8df0860768 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -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 = ""; + } // Setup all and none first - $cats_link = ""; if (!$notall) { $cats_link .= "