Watch game is now a link, rather than a button.
This commit is contained in:
@@ -428,16 +428,7 @@ var GempLotrHallUI = Class.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status == "PLAYING" && watchable == "true") {
|
if (status == "PLAYING" && watchable == "true") {
|
||||||
var but = $("<button>Watch game</button>");
|
lastField.append("<a href='game.html?gameId="+gameId+participantIdAppend+"'>Watch game</a>");
|
||||||
$(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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == "FINISHED" && winner != null) {
|
if (status == "FINISHED" && winner != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user