removed all alerts

This commit is contained in:
Jeena Paradies 2012-11-18 02:38:47 +01:00
parent b138887371
commit b6c94f23de
5 changed files with 6 additions and 75 deletions

View file

@ -130,7 +130,7 @@ function(HostApp, Paths, Hmac) {
Paths.getURL(url, http_method, callback, requestBody, auth_header);
} else {
alert("State is not the same: {" + this.state + "} vs {" + urlVars["state"] + "}")
console.error("State is not the same: {" + this.state + "} vs {" + urlVars["state"] + "}")
}
this.state = null; // reset the state

View file

@ -81,8 +81,7 @@ function(Core, Paths, HostApp, URI) {
those.newStatus(json);
} catch (e) {
//alert(resp.responseText);
alert(url + " JSON parse error");
console.error(url + " JSON parse error");
throw e;
}
}

View file

@ -284,8 +284,8 @@ function(jQuery, Paths, URI, HostApp, Followings) {
}
},
error:function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
console.error(xhr.status);
console.error(thrownError);
}
});
}

View file

@ -70,13 +70,13 @@ var console = {
__console.error(s);
}
},
warning: function (s) {
warn: function (s) {
if (OS_TYPE == "mac") {
alert("WARNING: " + s);
} else {
__console.warning(s);
}
}
},
notice: function(s) {
if (OS_TYPE == "mac") {
alert("NOTICE: " + s);