diff --git a/client/views/battle_team_preview.jade b/client/views/battle_team_preview.jade index eeea078..a2e38ab 100644 --- a/client/views/battle_team_preview.jade +++ b/client/views/battle_team_preview.jade @@ -1,14 +1,14 @@ -mixin displayOtherTeam(team, text) - - var teamvisible = team.collection.parents[0].get('visibleteam') - - var isdef = typeof teamvisible - section.battle_team_preview - p= text - ul.row-fluid.unstyled - if isdef != 'undefined' && teamvisible - - team.get('pokemon').each(function(pokemon) { - li.px_40 - +displayPokemon(pokemon) - - }) +mixin displayOtherTeam(team, text) + - var teamvisible = team.collection.parents[0].get('visibleteam') + - var isdef = typeof teamvisible + if isdef != 'undefined' && teamvisible + section.battle_team_preview + p= text + ul.row-fluid.unstyled + - team.get('pokemon').each(function(pokemon) { + li.px_40 + +displayPokemon(pokemon) + - }) mixin displayYourTeam(team, text) section.battle_team_preview diff --git a/public/js/templates.js b/public/js/templates.js index 4ca2dd8..2548007 100644 --- a/public/js/templates.js +++ b/public/js/templates.js @@ -295,9 +295,9 @@ var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;var var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; var teamvisible = team.collection.parents[0].get('visibleteam') var isdef = typeof teamvisible -buf.push("

" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "

"); if ( isdef != 'undefined' && teamvisible) { +buf.push("

" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "

"); } -buf.push("
"); }; var displayYourTeam_mixin = function(team, text){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};