MOD French -> English (1)
[euphorik.git] / js / client.js
index 49f7749..5324f96 100644 (file)
@@ -26,7 +26,7 @@ euphorik.Client = function(util, communication) {
    this.communication = communication;\r
    \r
    this.cookie = null;\r
-   this.regexCookie = /^cookie=([^;]*)/;\r
+   this.regexCookie = /cookie=([^;]*)/;\r
    \r
    // données personnels\r
    this.resetDonneesPersonnelles();\r
@@ -53,7 +53,7 @@ euphorik.Client.prototype.resetDonneesPersonnelles = function() {
    this.login = "";\r
    this.password = "";\r
    this.email = "";\r
-   this.css = $("link#cssPrincipale").attr("href");\r
+   this.css = $("link#mainCss").attr("href");\r
    this.chatOrder = "reverse";\r
    this.nickFormat = "nick";\r
    this.viewTimes = true;\r
@@ -77,7 +77,7 @@ euphorik.Client.prototype.setCss = function(css) {
    }\r
 \r
    this.css = css;\r
-   $("link#cssPrincipale").attr("href", this.css);\r
+   $("link#mainCss").attr("href", this.css);\r
    if (this.autoflush) {\r
       this.flush(true);\r
    }\r
@@ -295,7 +295,7 @@ euphorik.Client.prototype.getJSONEnregistrement = function(login, password) {
 };\r
 \r
 /**\r
-  * Connexion. Réalisée de manière synchrone.\r
+  * Connexion. Réalisé de manière synchrone.\r
   */\r
 euphorik.Client.prototype.connexion = function(action, messageJson) {\r
    var thisClient = this;\r
@@ -307,7 +307,7 @@ euphorik.Client.prototype.connexion = function(action, messageJson) {
          thisClient.chargerDonnees(data);\r
       },\r
       function(data) {\r
-         thisClient.util.messageDialogue(data.error_message);\r
+         thisClient.util.messageDialog(data.error_message);\r
          thisClient.delCookie(); // suppression du cookie actuel, cas où le cookie du client ne permet pas une authentification\r
       },\r
       false\r
@@ -369,7 +369,7 @@ euphorik.Client.prototype.flush = function(async) {
    if (!this.authentifie()) {\r
       return false;\r
    }\r
-\r
+   \r
    var thisClient = this;\r
    var ok = true;\r
    \r
@@ -380,7 +380,7 @@ euphorik.Client.prototype.flush = function(async) {
          thisClient.majBulle();         \r
       },\r
       function(data) {\r
-         thisClient.util.messageDialogue(data.error_message);\r
+         thisClient.util.messageDialog(data.error_message);\r
          ok = false;\r
       },\r
       async\r