Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- eventpage=num
- if (eventpage==1){
- count=1
- }
- console.log(count)
- var actionEndpoint = "/ranking/filterRanking_event_api/"+event+"?eventpage="+eventpage;
- var httpMethod = "GET";
- formfilterData = filterGeneral.serialize();
- $.ajax({
- url: actionEndpoint,
- method: httpMethod,
- data: formfilterData,
- success: function (data) {
- $(".rankingevent .cds_table").html(" ")
- $(".rankingevent .cds_table").append("<tr><th></th><th title='posizionenonfiltrata'>Pos</th><th title='posizionefiltrata'>Pos*</th><th>UtenteeSquadra</th><th>Punti</th></tr>")
- $.each(data.ranking_list, function (index, value) {
- $(".rankingevent .cds_table").append("<tr><td id='changepos'>"+value.changepos+"</td><td id='realpos'>"+value.rank+"</td><td id='filterpos'>"+count+"</td><td id='userteam'>"+value.user_name+"<span>"+value.user_team+"</span></td><td id='point'>"+value.point+"</td></tr>")
- count=count+1
- console.log(count)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement