[ - ]
STEP 2

Install KlipFolio

STEP 3

Click Add this Klip to KlipFolio to Add Klips

Fifa World Cup 2006 - Groups & Standings

Track FIFA World Cup 2006 Groups & Standings.
Downloads: 1,985 (1 this week)
User Rating:
2 Votes
(Rate it)
Popularity Δ: -32.1%
Author: Serence Inc.
Uploaded By: awille
Language: Global
Website: http://www.serence.com
Favourite Of: 0 People (Make it a Favourite)
Version: 3.04
Date Updated: Jun 12, 2006

 

Comments About this Klip

gd wrong order & refresh lacks reorder

Posted by q4muf on (2006-06-11)
wrong ordering in goal difference & criteria goal for --(fix)->

function compareItems(item1, item2)
{
var points1 = parseInt(item1.getData("points"));
var points2 = parseInt(item2.getData("points"));
var gf1 = parseInt(item1.getData("goalsFor"));
var gf2 = parseInt(item2.getData("goalsFor"));
var ga1 = parseInt(item1.getData("goalsAgainst"));
var ga2 = parseInt(item2.getData("goalsAgainst"));
var gd1 = gf1 - ga1;
var gd2 = gf2 - ga2;

if (points1 > points2)
{
return -1;
}
else if (points1 < points2)
{
return 1;
}
else
{
if (gd1 > gd2)
{
return -1;
}
else if (gd1 < gd2)
{
return 1;
}
else
{
if (gf1 > gf2)
{
return -1;
}
else if (gf1 < gf2)
{
return 1;
}
else
{
return 0;
}
}
}

}


also there seems to be a bug in reordering when results are refresehed it seems reordering is not done
so I changed position of Items.sort(compareItems); in:

function onRefresh()
{
...
}
Items.sort(compareItems);
return success;
}

re: gd wrong order & refresh lacks reorder

Posted by awille on (2006-06-12)
Thanks ... just updated to version 3.04

Leave a Comment

To leave a comment, you must sign in or register (it's free).

   
Comment Type:
Title:
Comment: