X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Fclient.js;h=5324f96063868653cead8239dc1cdd9fc0f19d2c;hb=27c4a5ac9000ca933f28abfedbf9607f73619615;hp=49f7749ceaf6f673bd918e2918ccb2261c9d79ee;hpb=dd3320de291341d6d86f79421b85d12c4764b057;p=euphorik.git diff --git a/js/client.js b/js/client.js index 49f7749..5324f96 100644 --- a/js/client.js +++ b/js/client.js @@ -26,7 +26,7 @@ euphorik.Client = function(util, communication) { this.communication = communication; this.cookie = null; - this.regexCookie = /^cookie=([^;]*)/; + this.regexCookie = /cookie=([^;]*)/; // données personnels this.resetDonneesPersonnelles(); @@ -53,7 +53,7 @@ euphorik.Client.prototype.resetDonneesPersonnelles = function() { this.login = ""; this.password = ""; this.email = ""; - this.css = $("link#cssPrincipale").attr("href"); + this.css = $("link#mainCss").attr("href"); this.chatOrder = "reverse"; this.nickFormat = "nick"; this.viewTimes = true; @@ -77,7 +77,7 @@ euphorik.Client.prototype.setCss = function(css) { } this.css = css; - $("link#cssPrincipale").attr("href", this.css); + $("link#mainCss").attr("href", this.css); if (this.autoflush) { this.flush(true); } @@ -295,7 +295,7 @@ euphorik.Client.prototype.getJSONEnregistrement = function(login, password) { }; /** - * Connexion. Réalisée de manière synchrone. + * Connexion. Réalisé de manière synchrone. */ euphorik.Client.prototype.connexion = function(action, messageJson) { var thisClient = this; @@ -307,7 +307,7 @@ euphorik.Client.prototype.connexion = function(action, messageJson) { thisClient.chargerDonnees(data); }, function(data) { - thisClient.util.messageDialogue(data.error_message); + thisClient.util.messageDialog(data.error_message); thisClient.delCookie(); // suppression du cookie actuel, cas où le cookie du client ne permet pas une authentification }, false @@ -369,7 +369,7 @@ euphorik.Client.prototype.flush = function(async) { if (!this.authentifie()) { return false; } - + var thisClient = this; var ok = true; @@ -380,7 +380,7 @@ euphorik.Client.prototype.flush = function(async) { thisClient.majBulle(); }, function(data) { - thisClient.util.messageDialogue(data.error_message); + thisClient.util.messageDialog(data.error_message); ok = false; }, async