Correction bug avec Interface Android
This commit is contained in:
parent
f1ba2ed1f4
commit
001a45a1dd
|
@ -201,6 +201,7 @@ game.buildUi = function () {
|
||||||
.appendTo("#game .relations");
|
.appendTo("#game .relations");
|
||||||
});
|
});
|
||||||
game.updateText();
|
game.updateText();
|
||||||
|
UI.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
game.leave = function () {
|
game.leave = function () {
|
||||||
|
@ -250,14 +251,16 @@ game.nextWord = function(click, button) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
game.ui = function () {
|
|
||||||
updateText();
|
|
||||||
UI.dismiss();
|
|
||||||
}
|
|
||||||
|
|
||||||
// ==== Code métier pour les scores
|
// ==== Code métier pour les scores
|
||||||
score = {};
|
score = {};
|
||||||
|
|
||||||
|
score.jss = function(w, h, iconSize) {
|
||||||
|
$(".screen")
|
||||||
|
.css('text-align', 'center');
|
||||||
|
};
|
||||||
|
|
||||||
score.enter = function () {
|
score.enter = function () {
|
||||||
|
if (!state.hasScore) {
|
||||||
UI.show("PtiClic", "Calcul de votre score");
|
UI.show("PtiClic", "Calcul de votre score");
|
||||||
$.getJSON("server.php?callback=?", {
|
$.getJSON("server.php?callback=?", {
|
||||||
user: "foo",
|
user: "foo",
|
||||||
|
@ -273,17 +276,16 @@ score.enter = function () {
|
||||||
}
|
}
|
||||||
delete data.score;
|
delete data.score;
|
||||||
$.extend(state.game, data);
|
$.extend(state.game, data);
|
||||||
|
state.hasScore = true;
|
||||||
state.commit();
|
state.commit();
|
||||||
score.ui();
|
score.ui();
|
||||||
}).error(ajaxError);
|
}).error(ajaxError);
|
||||||
|
} else {
|
||||||
|
score.ui();
|
||||||
|
}
|
||||||
jss();
|
jss();
|
||||||
}
|
}
|
||||||
|
|
||||||
score.jss = function(w, h, iconSize) {
|
|
||||||
$(".screen")
|
|
||||||
.css('text-align', 'center');
|
|
||||||
};
|
|
||||||
|
|
||||||
score.ui = function () {
|
score.ui = function () {
|
||||||
$("#score .scores").empty();
|
$("#score .scores").empty();
|
||||||
$.each(state.game.cloud, function(i,e) {
|
$.each(state.game.cloud, function(i,e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user