X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Fclient.js;h=9ea6ea0cf835dc91eac4d24aecd0bcceeebb0a46;hb=09608ab29e1c39ea51b51a5f8669dcde36efb306;hp=e01be9e5c8a8563969f6b6d2c4f08a06d864a64d;hpb=15f8b5143c6b9dcfe86eda84c22c31826a7f3d1c;p=euphorik.git diff --git a/js/client.js b/js/client.js index e01be9e..9ea6ea0 100644 --- a/js/client.js +++ b/js/client.js @@ -23,10 +23,10 @@ */ euphorik.Client = function(util, communication) { this.util = util; - this.communication = 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; @@ -369,7 +369,7 @@ euphorik.Client.prototype.flush = function(async) { if (!this.authentifie()) { return false; } - + var thisClient = this; var ok = true;