From aaf355ee4c3ac738b5bc03c328029722716b719c Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Mon, 5 Sep 2011 00:59:50 +0000 Subject: [PATCH] Fixing the deck builder disabling next page arrow based on the site/ring/ringBearer card choice. --- .../gemp-lotr-web/src/main/webapp/js/deckBuildingUi.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 c85b9676d..9cdb4acc0 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 @@ -300,9 +300,11 @@ var GempLotrDeckBuildingUI = Class.extend({ this.normalCollectionGroup.layoutCards(); this.specialCollectionGroup.layoutCards(); - $("#previousPage").button("option", "disabled", this.start == 0); - var cnt = parseInt(root.getAttribute("count")); - $("#nextPage").button("option", "disabled", (this.start + this.count) >= cnt); + if (this.normalCollectionDiv.is(":visible")) { + $("#previousPage").button("option", "disabled", this.start == 0); + var cnt = parseInt(root.getAttribute("count")); + $("#nextPage").button("option", "disabled", (this.start + this.count) >= cnt); + } } },