MOD mise en forme de util.js et conf.js, à faire pour tous les autres js
[euphorik.git] / js / pageRegister.js
index 42a9bec..ca1ddb3 100755 (executable)
@@ -1,4 +1,20 @@
-// coding: utf-8
+// coding: utf-8\r
+// Copyright 2008 Grégory Burri\r
+//\r
+// This file is part of Euphorik.\r
+//\r
+// Euphorik is free software: you can redistribute it and/or modify\r
+// it under the terms of the GNU General Public License as published by\r
+// the Free Software Foundation, either version 3 of the License, or\r
+// (at your option) any later version.\r
+//\r
+// Euphorik is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+//\r
+// You should have received a copy of the GNU General Public License\r
+// along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.
 
 function PageRegister(client, formateur, util)
 {
@@ -16,7 +32,7 @@ PageRegister.prototype.contenu = function()
  <table>\
   <tr>\
    <td>login</td>\
-   <td><input class="login" type="text" size="20" maxlength="20"/><input class="captcha" name="captcha" type="text" size="12"></input>\</td>\
+   <td><input class="login" type="text" size="20" maxlength="20"/><input class="captcha" name="captcha" type="text" size="12"></input></td>\
   </tr>\
   <tr>\
    <td>password</td>\
@@ -31,7 +47,7 @@ PageRegister.prototype.contenu = function()
   <td><button>valider</button>\
   </tr>\
  </table>\
-<form>'
+</form>'
 }
 
 PageRegister.prototype.charger = function()
@@ -57,7 +73,6 @@ PageRegister.prototype.charger = function()
             thisPage.util.messageDialogue("Les mots de passes ne correspondent pas")
          else if(thisPage.client.enregistrement(login, thisPage.util.md5(password)))
          {   
-            // TODO : avertir que l'enregistrement s'est bien déroulé
             thisPage.util.messageDialogue("Enregistrement réussi")
             thisPage.pages.afficherPage("minichat")
          }