Skip to content

Commit

Permalink
year was broken, year is now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dstN committed Apr 23, 2020
1 parent e36ad9d commit ac6b71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ajaxCall(iterate){
var playerID = $(this).find(">td:nth-of-type(2)").find("table>tbody>tr:first-of-type>td.hauptlink>a").attr("id"); // get playerID
var playerName = $(this).find(">td:nth-of-type(2)").find("table>tbody>tr:first-of-type>td.hauptlink>a").text(); // get playerName
var position = $(this).find(">td:nth-of-type(2)").find("table>tbody>tr:last-of-type>td").text(); // get players position
var year = $("select[name='saison_id'] option[selected='selected']").val(); // get year of transfer
var year = $(data).find("select[name='saison_id'] option[selected='selected']").val(); // get year of transfer
var yearLink = getUrl + year; // get yearLink of transfer
var nationalities = $(this).find(">td:nth-of-type(4)>img"); // get nationalities
if(nationalities.length===2){ // check if there are 2 nationaities
Expand Down

0 comments on commit ac6b71d

Please sign in to comment.