mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#18577434 : 체크박스 값 전달 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7086 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
032a5edc4d
commit
f8f1351438
1 changed files with 6 additions and 1 deletions
|
|
@ -198,7 +198,12 @@
|
|||
// javascript callback function
|
||||
$js_doc[] = "\tvalidator.cast('ADD_CALLBACK', ['{$filter_name}', function(form){";
|
||||
$js_doc[] = "\t\tvar params={}, responses=[], elms=form.elements, data=jQuery(form).serializeArray();";
|
||||
$js_doc[] = "\t\tjQuery.each(data, function(i, field){ if(field.value) params[field.name] = field.value; });";
|
||||
$js_doc[] = "\t\tjQuery.each(data, function(i, field){";
|
||||
$js_doc[] = "\t\t\tvar val = jQuery.trim(field.value);";
|
||||
$js_doc[] = "\t\t\tif(!val) return true;";
|
||||
$js_doc[] = "\t\t\tif(params[field.name] && jQuery(elms[field.name]).is(':checkbox')) params[field.name] += '|@|'+val;";
|
||||
$js_doc[] = "\t\t\telse params[field.name] = field.value;";
|
||||
$js_doc[] = "\t\t});";
|
||||
|
||||
// 데이터를 만들기 위한 parameter script 생성
|
||||
$parameter_count = count($parameter_param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue