issue 2079

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11033 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-17 01:33:23 +00:00
parent 18bb1ba4bf
commit 4492b4c774
3 changed files with 19 additions and 1 deletions

View file

@ -523,6 +523,7 @@
$js_code[] = 'var validator = xe.getApp("validator")[0];';
$js_code[] = 'if(!validator) return false;';
$errorLang = array();
foreach($extraList as $val)
{
if($val->column_type == 'kr_zip' || $val->column_type == 'tel')
@ -533,7 +534,10 @@
{
$js_code[] = sprintf('validator.cast("ADD_MESSAGE", ["%s","%s"]);', $val->column_name, $val->column_title);
}
$errorLang[$val->column_name] = $val->column_title;
}
$_SESSION['XE_VALIDATOR_ERROR_LANG'] = $errorLang;
$js_code[] = '})(jQuery);';
$js_code[] = '//]]></script>';