From fba2652fd93c68240f71e94b56ee1ee5d2f06021 Mon Sep 17 00:00:00 2001 From: uecasm Date: Fri, 29 Nov 2013 21:12:25 +1300 Subject: [PATCH] Fix formatting. --- WebContent/js/cah.game.js | 12 ++++++------ src/net/socialgamer/cah/data/WhiteDeck.java | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) 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.