mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
exec_xml 메소드에 error 핸들러 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7384 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fc9d40cece
commit
871e61ea2c
1 changed files with 6 additions and 2 deletions
|
|
@ -261,8 +261,12 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
|
|||
$.each(resp_obj, function(key, val){ if(tags[key]) ret[key] = val; });
|
||||
|
||||
if(ret['error'] != 0) {
|
||||
alert(ret['message'] || 'error!');
|
||||
return null;
|
||||
if ($.isFunction($.exec_xml.onerror)) {
|
||||
return $.exec_xml.onerror(module, act, ret, callback_func, response_tags, callback_func_arg, fo_obj);
|
||||
} else {
|
||||
alert(ret['message'] || 'error!');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if(ret['redirect_url']) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue