mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Remove deprecated exec_xml() from signup value check function
This commit is contained in:
parent
6d25f663b1
commit
61ea93064a
1 changed files with 16 additions and 15 deletions
|
|
@ -19,31 +19,32 @@ function memberSetEvent() {
|
||||||
// 실제 서버에 특정 필드의 value check를 요청하고 이상이 있으면 메세지를 뿌려주는 함수
|
// 실제 서버에 특정 필드의 value check를 요청하고 이상이 있으면 메세지를 뿌려주는 함수
|
||||||
function memberCheckValue(event) {
|
function memberCheckValue(event) {
|
||||||
var field = event.target;
|
var field = event.target;
|
||||||
var _name = field.name;
|
if(!field.name || !field.value) {
|
||||||
var _value = field.value;
|
return;
|
||||||
if(!_name || !_value) return;
|
}
|
||||||
|
|
||||||
var params = {name:_name, value:_value};
|
exec_json('member.procMemberCheckValue', {
|
||||||
var response_tags = ['error','message'];
|
name: field.name,
|
||||||
|
value: field.value
|
||||||
exec_xml('member','procMemberCheckValue', params, completeMemberCheckValue, response_tags, field);
|
}, function(data) {
|
||||||
|
completeMemberCheckValue(data, null, field);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 서버에서 응답이 올 경우 이상이 있으면 메세지를 출력
|
// 서버에서 응답이 올 경우 이상이 있으면 메세지를 출력
|
||||||
function completeMemberCheckValue(ret_obj, response_tags, field) {
|
function completeMemberCheckValue(data, unused, field) {
|
||||||
var _id = 'dummy_check'+field.name;
|
var _id = 'dummy_check'+field.name;
|
||||||
var dummy = jQuery('#'+_id);
|
var dummy = jQuery('#'+_id);
|
||||||
|
|
||||||
if(ret_obj['message']=='success') {
|
|
||||||
dummy.html('').hide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dummy.length) {
|
if (!dummy.length) {
|
||||||
dummy = jQuery('<p class="checkValue help-inline" style="color:red" />').attr('id', _id).appendTo(field.parentNode);
|
dummy = jQuery('<p class="checkValue help-inline" style="color:red" />').attr('id', _id).appendTo(field.parentNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
dummy.html(ret_obj['message']).show();
|
if(data.message == 'success') {
|
||||||
|
dummy.html('').hide();
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
dummy.html(data.message).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 결과 메세지를 정리하는 함수
|
// 결과 메세지를 정리하는 함수
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue