Skip to content

Commit a22fca7

Browse files
committed
Teambuilder: Fix target on Smogon links
1 parent 1d84f93 commit a22fca7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

play.pokemonshowdown.com/js/client-teambuilder.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1249,10 +1249,11 @@
12491249
var resource = formatInfo.resources[i];
12501250
// these are not <li> because that adds too much padding around each entry, making the whole thing
12511251
// take up too much space
1252-
buf += '<small style="padding: 1">- <a href="' + resource.url + '">' + resource.resource_name + '</a></small><br />';
1252+
buf += '<small style="padding: 1">- <a href="' + resource.url + '" target="_blank">' + resource.resource_name + '</a></small><br />';
12531253
}
12541254
}
1255-
buf += '<small>Find more helpful resources for this tier on <a href="' + formatInfo.url + '">the Smogon Dex</a>.';
1255+
var desc = formatInfo.resources.length ? 'more ' : '';
1256+
buf += '<small>Find ' + desc + 'helpful resources for this tier on <a href="' + formatInfo.url + '" target="_blank">the Smogon Dex</a>.';
12561257
buf += '<br />';
12571258
}
12581259
buf += '</ol>';

0 commit comments

Comments
 (0)