Fix formatting.

This commit is contained in:
uecasm 2013-11-29 21:12:25 +13:00
parent 0dc7a56e79
commit fba2652fd9
2 changed files with 6 additions and 7 deletions

View File

@ -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 = $("<div/>").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 = $("<div/>").text(text).html(); // html sanitise
this.handSelectedCard_.setText(text);
ajax = ajax.withMessage(text);
}
ajax.run();
}

View File

@ -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.