From aff489a485bc9f63e43f391d5c981e09ca683e46 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Wed, 2 Jan 2013 10:24:33 +0000 Subject: [PATCH] Watch game is now a link, rather than a button. --- .../src/main/webapp/js/gemp-014/hallUi.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-014/hallUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-014/hallUi.js index 4c6ba4669..146414368 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-014/hallUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-014/hallUi.js @@ -428,16 +428,7 @@ var GempLotrHallUI = Class.extend({ } if (status == "PLAYING" && watchable == "true") { - var but = $(""); - $(but).button().click(( - function(gameIdToWatch) { - var participantId = getUrlParam("participantId"); - var participantIdAppend = ""; - if (participantId != null) - participantIdAppend = "&participantId=" + participantId; - location.href = "/gemp-lotr/game.html?gameId=" + gameIdToWatch + participantIdAppend; - })(gameId)); - lastField.append(but); + lastField.append("Watch game"); } if (status == "FINISHED" && winner != null) {