www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 53dac705376495e1796e8d1178376b2b4f708221
parent 3fea4ff1ca684a3e05a84fe5a53079b78378f322
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Fri, 20 May 2011 12:03:18 +0200

Correction d'un PtiBug (quand l'url change juste le numéro de partie, ça affiche toujours l'ancienne au lieu de charger une nouvelle)

+ suppression des console.log() qui traînaient.

Diffstat:
Mcode/serveur/php/ressources/pticlic.js | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/code/serveur/php/ressources/pticlic.js b/code/serveur/php/ressources/pticlic.js @@ -127,7 +127,7 @@ init(function() { // ==== Écran connexion runstate.pendingGetPrefs = function() { - console.log('Should execute pendingGetPrefs'); + UI().log('Should execute pendingGetPrefs'); }; init(function() { @@ -161,7 +161,6 @@ $.ajaj = function(url, data, callback) { if (!data.user) data.user = user; if (!data.passwd) data.passwd = passwd; } - console.log('ajaj', data, user, passwd); return $.getJSON(url, data, callback); }; @@ -223,6 +222,10 @@ init(function() { }); game.bind('update', function(e) { + if (state.pgid != runstate.game.pgid) { + $('#game').trigger('goto'); + return; + } var direction = state.answers.length - oldstate.answers.length; var mn = $("#game .mn-caption"); var clone = $();