Author: ralfbecker
New Revision: 26790
URL: http://www.egroupware.org/viewvc/egroupware?rev=3D26790&view=3Drev
Log:
“allow to disable one of multiple checkboxes”
Modified:
trunk/etemplate/inc/class.etemplate.inc.php
Modified: trunk/etemplate/inc/class.etemplate.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/etemplate/inc/class.=
etemplate.inc.php?rev=3D26790&r1=3D26789&r2=3D26790&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/etemplate/inc/class.etemplate.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate.inc.php Wed Apr 15 23:07:33 2009
@@ -1180,6 +1180,10 @@
if (!$set_val && !$unset_val) $set_val =3D 1;
$value =3D $value =3D=3D $set_val;
}
-
if (($multiple =3D substr($cell['name'],-2) =3D=3D '[]') && !$readonly) -
{ -
$readonly =3D $readonlys[substr($cell['name'],0,-1).$set_val.']']; -
} if ($readonly) { if (count(explode(',',$cell_options)) < 3)
@@ -1195,7 +1199,7 @@
{
if ($value) $options .=3D ’ checked=3D"checked"’;
-
if (($multiple =3D substr($cell['name'],-2) =3D=3D '[]'))
-
if ($multiple) { // add the set_val to the id to make it unique $options =3D str_replace('id=3D"'.$form_name,'id=3D"'.substr($form_n=
ame,0,-2)."[$set_val]",$options);
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs