From 200b4df6f948413e97c8440d46fb1cd045278e85 Mon Sep 17 00:00:00 2001 From: flyskyko Date: Wed, 7 Sep 2011 08:43:27 +0000 Subject: [PATCH] remove alert() when ajax error git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9083 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/xml_handler.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js index 9d2819621..27a426044 100644 --- a/common/js/xml_handler.js +++ b/common/js/xml_handler.js @@ -163,7 +163,7 @@ function xml2json(xml, tab, ignoreAttrib) { xml = xml.documentElement; var json_obj = X.toObj(X.removeWhite(xml)), json_str; - + if (typeof(JSON)=='object' && jQuery.isFunction(JSON.stringify) && false) { var obj = {}; obj[xml.nodeName] = json_obj; json_str = JSON.stringify(obj); @@ -205,7 +205,7 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp if(port != 443) target += ':'+port; if(_ul.pathname[0] != '/') target += '/'; - + target += _ul.pathname; xml_path = target.replace(/\/$/, '')+'/index.php'; } @@ -299,7 +299,9 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp msg = textStatus; } - alert(msg); + try{ + console.log(msg); + }catch(ee){} } }); } catch(e) { @@ -347,7 +349,7 @@ function send_by_form(url, params) { function arr2obj(arr) { var ret = {}; for(var key in arr) { - if(arr.hasOwnProperty(key)) ret[key] = arr[key]; + if(arr.hasOwnProperty(key)) ret[key] = arr[key]; } return ret; }