From b06cdc2234e3e5f16313f8dd6722f570bb5c4648 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sun, 18 Sep 2011 21:59:11 +0000 Subject: [PATCH] Fixing setting ring and ringbearer. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js index 7e7d9d127..49fa00e48 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js @@ -131,7 +131,7 @@ var GempLotrDeckBuildingUI = Class.extend({ this.ringBearerDiv = $("
Ring Bearer
"); this.ringBearerDiv.click( function() { - if ($(".card", this.ringBearerDiv).length == 0) + if ($(".card", that.ringBearerDiv).length == 0) that.showPredefinedFilter("keyword:RING_BEARER", that.ringBearerDiv); }); this.ringBearerGroup = new NormalCardGroup(this.ringBearerDiv, function(card) { @@ -142,7 +142,7 @@ var GempLotrDeckBuildingUI = Class.extend({ this.ringDiv = $("
Ring
"); this.ringDiv.click( function() { - if ($(".card", this.ringDiv).length == 0) + if ($(".card", that.ringDiv).length == 0) that.showPredefinedFilter("cardType:THE_ONE_RING", that.ringDiv); }); this.ringGroup = new NormalCardGroup(this.ringDiv, function(card) {