Reverted change I made t pinpoint team preview bug

This commit is contained in:
Deukhoofd 2016-02-10 04:10:51 +01:00
parent cf4ad44d43
commit 5fdcc4b285
2 changed files with 13 additions and 13 deletions

View File

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

View File

@ -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("<section class=\"battle_team_preview\"><p>" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "</p><ul class=\"row-fluid unstyled\"></ul>");
if ( isdef != 'undefined' && teamvisible)
{
buf.push("<section class=\"battle_team_preview\"><p>" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "</p><ul class=\"row-fluid unstyled\">");
team.get('pokemon').each(function(pokemon) {
{
buf.push("<li class=\"px_40\">");
@ -305,8 +305,8 @@ displayPokemon_mixin(pokemon);
buf.push("</li>");
}
})
buf.push("</ul></section>");
}
buf.push("</section>");
};
var displayYourTeam_mixin = function(team, text){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};