From 871e61ea2ca1f1916f704c029d2fd91c7fff0fda Mon Sep 17 00:00:00 2001 From: taggon Date: Fri, 23 Apr 2010 07:58:58 +0000 Subject: [PATCH] =?UTF-8?q?exec=5Fxml=20=EB=A9=94=EC=86=8C=EB=93=9C?= =?UTF-8?q?=EC=97=90=20error=20=ED=95=B8=EB=93=A4=EB=9F=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7384 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/xml_handler.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index 21cd6d0bf..20b5f3ca7 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -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']) {