1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-27 18:00:03 +00:00

Fixed bug with team preview timer

This commit is contained in:
Deukhoofd
2016-02-10 04:07:03 +01:00
parent ab072543d2
commit cf4ad44d43
3 changed files with 10 additions and 12 deletions

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 || {};