diff --git a/WebContent/js/cah.game.js b/WebContent/js/cah.game.js index 25396d6..38b8254 100644 --- a/WebContent/js/cah.game.js +++ b/WebContent/js/cah.game.js @@ -1020,12 +1020,12 @@ cah.Game.prototype.confirmClick_ = function() { var ajax = cah.Ajax.build(cah.$.AjaxOperation.PLAY_CARD).withGameId(this.id_).withCardId( this.handSelectedCard_.getServerId()); if (this.handSelectedCard_.isBlankCard()) { - // blank card - var text = prompt("What would you like this card to say?", ""); - if (text == null || text == '') { return; } - text = $("
").text(text).html(); // html sanitise - this.handSelectedCard_.setText(text); - ajax = ajax.withMessage(text); + // blank card + var text = prompt("What would you like this card to say?", ""); + if (text == null || text == '') { return; } + text = $("").text(text).html(); // html sanitise + this.handSelectedCard_.setText(text); + ajax = ajax.withMessage(text); } ajax.run(); } diff --git a/src/net/socialgamer/cah/data/WhiteDeck.java b/src/net/socialgamer/cah/data/WhiteDeck.java index ab3430c..d52f004 100644 --- a/src/net/socialgamer/cah/data/WhiteDeck.java +++ b/src/net/socialgamer/cah/data/WhiteDeck.java @@ -95,7 +95,6 @@ public class WhiteDeck { discard.add(card); } } - } /** * Shuffles the discard pile and puts the cards under the cards remaining in the deck.