From: pdontthink Date: Wed, 30 Mar 2005 00:48:17 +0000 (+0000) Subject: Allow extra javascript to be added to checkboxes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e0ac07ed1ee9dd4f56068ccce03923418faa311f;p=squirrelmail.git 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 --- 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); } /**