From 21c8c50e3ec21a690d44bde0523bc4c778e1774b Mon Sep 17 00:00:00 2001 From: Yoann Date: Thu, 7 Apr 2011 11:24:04 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20de=20la=20v=C3=A9rification=20avan?= =?UTF-8?q?t=20envoi=20de=20la=20partie=20sur=20la=20base=20de=20donn?= =?UTF-8?q?=C3=A9e,=20mais=20probl=C3=A8me=20de=20syntaxe=20(petit=20bug?= =?UTF-8?q?=20mais=20tr=C3=A8s=20p=C3=A9nible)=20!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/serveur/php/ressources/createGame.js | 58 ++++++++++++++++++----- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/code/serveur/php/ressources/createGame.js b/code/serveur/php/ressources/createGame.js index 72cffd8..94a62ea 100644 --- a/code/serveur/php/ressources/createGame.js +++ b/code/serveur/php/ressources/createGame.js @@ -5,6 +5,10 @@ $($.getJSON("server.php", var user = "foo"; var passwd = "bar"; var relations = data; + var nbWordMin = 10; + var WordsOK = new Array(); + var centerOK = false; + var displayNWordLines = function (nb) { @@ -17,11 +21,12 @@ $($.getJSON("server.php", (function (i) { $("#word"+i).focusout(checkWord); + wordsOK[i] = false; })(i); } numWord += nb; - } + }; var displayCentralWordAndRelations = function () { $("#centralWord").focusout(checkWord); @@ -30,24 +35,20 @@ $($.getJSON("server.php", $('