issue 2104 add the extra lang code(type of kr_zip, tel) in member page.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11013 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-09 07:49:05 +00:00
parent b041550c53
commit afa8597aa0
3 changed files with 12 additions and 5 deletions

View file

@ -426,7 +426,14 @@
foreach($extraList as $val)
{
$js_code[] = sprintf('validator.cast("ADD_MESSAGE", ["%s","%s"]);', $val->column_name, $val->column_title);
if($val->column_type == 'kr_zip' || $val->column_type == 'tel')
{
$js_code[] = sprintf('validator.cast("ADD_MESSAGE", ["%s[]","%s"]);', $val->column_name, $val->column_title);
}
else
{
$js_code[] = sprintf('validator.cast("ADD_MESSAGE", ["%s","%s"]);', $val->column_name, $val->column_title);
}
}
$js_code[] = '})(jQuery);';