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 = "