mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
remove alert() when ajax error
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9083 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f1c0f00ccc
commit
200b4df6f9
1 changed files with 6 additions and 4 deletions
|
|
@ -163,7 +163,7 @@ function xml2json(xml, tab, ignoreAttrib) {
|
||||||
xml = xml.documentElement;
|
xml = xml.documentElement;
|
||||||
|
|
||||||
var json_obj = X.toObj(X.removeWhite(xml)), json_str;
|
var json_obj = X.toObj(X.removeWhite(xml)), json_str;
|
||||||
|
|
||||||
if (typeof(JSON)=='object' && jQuery.isFunction(JSON.stringify) && false) {
|
if (typeof(JSON)=='object' && jQuery.isFunction(JSON.stringify) && false) {
|
||||||
var obj = {}; obj[xml.nodeName] = json_obj;
|
var obj = {}; obj[xml.nodeName] = json_obj;
|
||||||
json_str = JSON.stringify(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(port != 443) target += ':'+port;
|
||||||
if(_ul.pathname[0] != '/') target += '/';
|
if(_ul.pathname[0] != '/') target += '/';
|
||||||
|
|
||||||
target += _ul.pathname;
|
target += _ul.pathname;
|
||||||
xml_path = target.replace(/\/$/, '')+'/index.php';
|
xml_path = target.replace(/\/$/, '')+'/index.php';
|
||||||
}
|
}
|
||||||
|
|
@ -299,7 +299,9 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
|
||||||
msg = textStatus;
|
msg = textStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
alert(msg);
|
try{
|
||||||
|
console.log(msg);
|
||||||
|
}catch(ee){}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
@ -347,7 +349,7 @@ function send_by_form(url, params) {
|
||||||
function arr2obj(arr) {
|
function arr2obj(arr) {
|
||||||
var ret = {};
|
var ret = {};
|
||||||
for(var key in arr) {
|
for(var key in arr) {
|
||||||
if(arr.hasOwnProperty(key)) ret[key] = arr[key];
|
if(arr.hasOwnProperty(key)) ret[key] = arr[key];
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue