commit ee2f6f5c09a243c10b1e478747ecebc2d503ff1e
parent 576b5a2d9dd178fe29f87a60f3f4baa35002f241
Author: Bertrand BRUN <bertrand0brun@gmail.com>
Date: Thu, 28 Apr 2011 09:11:59 +0200
Correction de bug mineur
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/code/serveur/php/ressources/pticlic.js b/code/serveur/php/ressources/pticlic.js
@@ -197,8 +197,9 @@ ui.game = function () {
if (currentWordNb < state.game.cloud.length) {
animateNext(click, button);
} else {
- state.set('screen','score').commit();
+ state.set('screen','score');
}
+ state.commit();
}
function animateNext(click, button) {
@@ -270,6 +271,7 @@ enter.score = function () {
}
ui.score = function () {
+ $("#score .scores").empty();
$.each(state.game.cloud, function(i,e) {
var percentScore = (e.score - state.game.minScore) / (state.game.maxScore - state.game.minScore);
u = $("#templates .scoreLine");