From e0ac07ed1ee9dd4f56068ccce03923418faa311f Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 30 Mar 2005 00:48:17 +0000 Subject: [PATCH] Allow extra javascript to be added to checkboxes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9161 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/forms.php b/functions/forms.php index d1a96888..95fa1ced 100644 --- a/functions/forms.php +++ b/functions/forms.php @@ -37,9 +37,9 @@ function addPwField($name , $value = null) { /** * Form checkbox */ -function addCheckBox($name, $checked = false, $value = null) { +function addCheckBox($name, $checked = false, $value = null, $xtra = '') { return addInputField('checkbox', $name, $value, - ($checked ? ' checked="checked"' : '')); + ($checked ? ' checked="checked"' : '') . ' ' . $xtra); } /** -- 2.25.1