Bug #17677 ยป 6519_class.tslib_content.php.patch
class.tslib_content.php (working copy) | ||
---|---|---|
$hiddenfields = '<div style="display:none;">'.$hiddenfields.'</div>';
|
||
if ($conf['REQ']) {
|
||
// Add stdWrap properties to form messages
|
||
$conf['goodMess'] = (!empty($conf['goodMess'])) ? $this->stdWrap($conf['goodMess'], $conf['goodMess.']) : '';
|
||
$conf['badMess'] = (!empty($conf['badMess'])) ? $this->stdWrap($conf['badMess'], $conf['badMess.']) : '';
|
||
$conf['emailMess'] = (!empty($conf['emailMess'])) ? $this->stdWrap($conf['emailMess'], $conf['emailMess.']) : '';
|
||
$validateForm=' onsubmit="return validateForm(\''.$formname.'\',\''.implode(',',$fieldlist).'\','.t3lib_div::quoteJSvalue($conf['goodMess']).','.t3lib_div::quoteJSvalue($conf['badMess']).','.t3lib_div::quoteJSvalue($conf['emailMess']).')"';
|
||
$GLOBALS['TSFE']->additionalHeaderData['JSFormValidate'] = '<script type="text/javascript" src="'.$GLOBALS['TSFE']->absRefPrefix.'t3lib/jsfunc.validateform.js"></script>';
|
||
} else $validateForm='';
|