From 779bdb4067ba5abca77eb500375fb69e7cd0c4fb Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 19 Aug 2013 11:10:52 -0500 Subject: [PATCH] Don't show socket error message when the server dies --- www/assets/js/callbacks.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index b35ab18b..36656138 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -13,6 +13,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI Callbacks = { error: function (reason) { + // Don't show the error for when the server goes down + if(reason && reason.returnValue === true) + return; + var d = $("
").addClass("alert alert-error span12") .appendTo($("#announcements")); $("

").text("Uh-oh!").appendTo(d);