1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-12-15 02:29:14 +00:00

add deck-card-number

This commit is contained in:
exane
2015-07-04 17:33:06 +02:00
parent 2d1fb7056e
commit b8c0ce241a
4 changed files with 26 additions and 5 deletions

View File

@@ -114,6 +114,7 @@ let SideView = Backbone.View.extend({
template: require("../templates/cards.handlebars"),
templateCards: require("../templates/fieldCards.handlebars"),
templateInfo: require("../templates/info.handlebars"),
templateCardpiles: require("../templates/cardpiles.handlebars"),
initialize: function(options){
let self = this;
this.side = options.side;
@@ -145,6 +146,14 @@ let SideView = Backbone.View.extend({
this.$info = this.$el.find(".game-info" + this.side).html(html);
/*let $deck = $(this.side + " .field-deck");
$deck*/
this.$deck = $(this.side + ".right-side");
this.$deck.html(this.templateCardpiles({
data: d
}));
if(this.app.user.get("waiting") && this.side === ".player"){
this.$info.addClass("removeBackground");