mirror of https://github.com/calzoneman/sync.git
Don't show socket error message when the server dies
This commit is contained in:
parent
49dc501a8e
commit
779bdb4067
|
@ -13,6 +13,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||||
Callbacks = {
|
Callbacks = {
|
||||||
|
|
||||||
error: function (reason) {
|
error: function (reason) {
|
||||||
|
// Don't show the error for when the server goes down
|
||||||
|
if(reason && reason.returnValue === true)
|
||||||
|
return;
|
||||||
|
|
||||||
var d = $("<div/>").addClass("alert alert-error span12")
|
var d = $("<div/>").addClass("alert alert-error span12")
|
||||||
.appendTo($("#announcements"));
|
.appendTo($("#announcements"));
|
||||||
$("<h3/>").text("Uh-oh!").appendTo(d);
|
$("<h3/>").text("Uh-oh!").appendTo(d);
|
||||||
|
|
Loading…
Reference in New Issue