fixed json desktop notifications

This commit is contained in:
Mark Vejvoda
2013-10-31 15:43:43 +00:00
parent b71ec8447e
commit 5d5c2855b6
3 changed files with 33 additions and 4 deletions

View File

@@ -26,8 +26,7 @@ function asynchDone(url, target) {
}
}
//debugger;
for(var gameIndex = 1; gameIndex < 200; ++gameIndex) {
function setupGameStatsLink(gameIndex) {
if(document.getElementById('gameStats_' + gameIndex) ) {
var link = document.getElementById('gameStats_' + gameIndex);
link.onclick = function() {
@@ -48,3 +47,9 @@ for(var gameIndex = 1; gameIndex < 200; ++gameIndex) {
};
}
}
//debugger;
for(var gameIndex = 1; gameIndex < 200; ++gameIndex) {
setupGameStatsLink(gameIndex);
}