From 017f40f4ecdd8bc31392d68771de8f54d5b0034d Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 20 Sep 2011 10:28:55 +0000 Subject: [PATCH] Removing alerts that need not be there. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js index 80292f6d8..fc747a358 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js @@ -57,11 +57,8 @@ var GempLotrGameUI = Class.extend({ var that = this; this.communication = new GempLotrCommunication("/gemp-lotr/server", function() { - if (that.chatBox != null) { - that.chatBox.appendMessage("There was a problem communicating with the server, if the game is finished, it has been removed, otherwise you have lost connection to the server.", "warningMessage"); - that.chatBox.appendMessage("Refresh the page (press F5) to resume the game, or press back on your browser to get back to the Game Hall.", "warningMessage"); - } else - alert("There was a problem communicating with the server, most likely the game does not exist."); + that.chatBox.appendMessage("There was a problem communicating with the server, if the game is finished, it has been removed, otherwise you have lost connection to the server.", "warningMessage"); + that.chatBox.appendMessage("Refresh the page (press F5) to resume the game, or press back on your browser to get back to the Game Hall.", "warningMessage"); }); $.expr[':'].cardId = function(obj, index, meta, stack) { @@ -545,10 +542,6 @@ var GempLotrGameUI = Class.extend({ return -1; }, - processError: function (xhr, ajaxOptions, thrownError) { - alert("There was a problem during communication with server"); - }, - zoneSize: function(element) { var playerId = element.getAttribute("participantId"); var zone = element.getAttribute("zone");