Update of /cvsroot/xoops/xoops-current/html/class/xoopsform
In directory usw-pr-cvs1:/tmp/cvs-serv31150
Modified Files:
themeform.php
Log Message:
no message
Index: themeform.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/class/xoopsform/themeform.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** themeform.php 18 Sep 2002 10:44:49 -0000 1.2
--- themeform.php 20 Sep 2002 16:08:34 -0000 1.3
***************
*** 42,47 ****
<!--
function xoopsFormValidate_".$this->getName()."(){";
! foreach ( $required as $req ) {
! $js .= "if ( document.".$this->getName().".".$req.".value == \"\" ){alert( \"".sprintf(_FORM_ENTER, $req)."\" );document.".$this->getName().".".$req.".focus();return false;}";
}
$js .= "}
--- 42,49 ----
<!--
function xoopsFormValidate_".$this->getName()."(){";
! $required =& $this->getRequired();
! $reqcount = count($required);
! for ($i = 0; $i < $reqcount; $i++) {
! $js .= "if ( document.".$this->getName().".".$required[$i]->getName().".value == \"\" ){alert( \"".sprintf(_FORM_ENTER, $required[$i]->getCaption())."\" );document.".$this->getName().".".$required[$i]->getName().".focus();return false;}";
}
$js .= "}
|