Added extra prizes information.

This commit is contained in:
marcins78@gmail.com
2013-01-01 20:57:57 +00:00
parent 66a921fc9f
commit e78c51781e
5 changed files with 22 additions and 2 deletions

View File

@@ -72,6 +72,9 @@ public class HallServer extends AbstractServer {
_tournamentQueues.put("movie_queue", new SingleEliminationRecurringQueue(635, "movie",
CollectionType.MY_CARDS, "movieQueue-", "Movie Block 8-man single-elimination", 8,
true, tournamentService, _tournamentPrizeSchemeRegistry.getTournamentPrizes("onDemand")));
_tournamentQueues.put("expanded_queue", new SingleEliminationRecurringQueue(635, "expanded",
CollectionType.MY_CARDS, "expandedQueue-", "Expanded 8-man single-elimination", 8,
true, tournamentService, _tournamentPrizeSchemeRegistry.getTournamentPrizes("onDemand")));
}
@Override

View File

@@ -53,6 +53,6 @@ public class SingleEliminationOnDemandPrizes implements TournamentPrizes{
@Override
public String getPrizeDescription() {
return "3 wins - 2 boosters, 2 wins - 1 booster and a random promo, 1 win - 1 booster";
return "<div class='prizeHint' value='3 wins - 2 boosters, 2 wins - 1 booster and a random promo, 1 win - 1 booster'>3-(2+promo)-1-1</div>";
}
}

View File

@@ -33,6 +33,12 @@ body {
cursor: pointer;
}
.prizeHint {
display: inline;
color: #6f6fff;
cursor: pointer;
}
.clickableFormat {
cursor: pointer;
color: #6f6fff;

View File

@@ -65,6 +65,7 @@ response.setDateHeader ("Expires", -1);
var horSpace = 30;
var vertSpace = 45;
infoDialog.dialog({title:"Card information"});
if (card.horizontal) {
// 500x360
infoDialog.dialog({width:Math.min(500 + horSpace, windowWidth), height:Math.min(360 + vertSpace, windowHeight)});
@@ -74,6 +75,16 @@ response.setDateHeader ("Expires", -1);
}
infoDialog.dialog("open");
event.stopPropagation();
return false;
} else if (tar.hasClass("prizeHint")) {
var prizeDescription = tar.attr("value");
infoDialog.text(prizeDescription);
infoDialog.dialog({title:"Prizes details", width:300, height: 150});
infoDialog.dialog("open");
event.stopPropagation();
return false;
}

View File

@@ -36,7 +36,7 @@ var CardInformationDialog = Class.extend({
},
isOpened: function() {
return this.infoDialog.dialog("isOpen")
return this.infoDialog.dialog("isOpen");
},
close: function() {