exec_xml 메소드에 error 핸들러 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7384 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-04-23 07:58:58 +00:00
parent fc9d40cece
commit 871e61ea2c

View file

@ -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']) {