Difference between revisions of "Template:Example"

Line 469: Line 469:
 
}
 
}
  
else if (  ( (wgPageName.match(/\//g) || []).length ) == 1 ) {  // if it is the home page , just print the team's name
+
else if (  ( (wgPageName.match(/\//g) || []).length ) == 0 ) {  // if it is the home page , just print the team's name
 
$("#team_name").html( wgPageName );  
 
$("#team_name").html( wgPageName );  
 
}
 
}

Revision as of 15:15, 14 April 2016