Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisisth committed Nov 2, 2024
1 parent 28fe6b0 commit 3a8204e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/js/interface/RankingInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ var InterfaceMaster = (function () {

csv = 'Pokemon,Score,Dex,Type 1,Type 2,Attack,Defense,Stamina,Stat Product,Level,CP,Fast Move,Charged Move 1,Charged Move 2,Charged Move 1 Count,Charged Move 2 Count,Buddy Distance,Charged Move Cost\n';

if (typeof PokeMultiSelect !== 'undefined'){
var customMetaSelector = new PokeMultiSelect($(".poke.multi").eq(0));
customMetaSelector.init(data.pokemon, battle);
}
//customMetaSelector.setContext("customrankings");

// Create an element for each ranked Pokemon

metaGroup = [];
Expand Down Expand Up @@ -254,7 +248,6 @@ var InterfaceMaster = (function () {
self.completeRankingDisplay();
}
}, i);
customMetaSelector.setPokemonList(metaGroupExport);
}

this.displayRankingEntry = function(r, index){
Expand Down Expand Up @@ -449,7 +442,6 @@ var InterfaceMaster = (function () {
}

this.completeRankingDisplay = function(){

// Update download link with new data
const cupName = battle.getCup().name;
const category = $(".category-select option:selected").val() || scenario.slug;
Expand Down Expand Up @@ -484,6 +476,15 @@ var InterfaceMaster = (function () {
if((! $(".check.xl").hasClass("on"))&&(context != "custom")){
toggleXLPokemon();
}
if (typeof PokeMultiSelect !== 'undefined'){
var customMetaSelector = new PokeMultiSelect($(".poke.multi").eq(0));
customMetaSelector.init(data.pokemon, battle);
}

customMetaSelector.setPokemonList(metaGroupExport);



}

// Given JSON of get parameters, load these settings
Expand Down

0 comments on commit 3a8204e

Please sign in to comment.