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:
@@ -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 || {};
|
||||
|
||||
Reference in New Issue
Block a user