X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=126f335f5cf2c2a5045d11290b6022c357f593fb;hp=a3b0acf28da31646d5e3d260ecc1abc43c776bd6;hb=4c8bece326d3f8f7d65faf7f80a19cf796fb46d1;hpb=b98387fc8196e8e30ca1c4812af57484322c3a21 diff --git a/js/euphorik.js b/js/euphorik.js index a3b0acf..126f335 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -465,6 +465,9 @@ function Client(util) this.resetDonneesPersonnelles() this.setStatut(statutType.deconnected) + + // si true alors chaque modification du client est mémorisé sur le serveur + this.autoflush = $.browser["opera"] } Client.prototype.resetDonneesPersonnelles = function() @@ -494,7 +497,9 @@ Client.prototype.setCss = function(css) this.css = css $("link#cssPrincipale").attr("href", this.css) - this.majMenu() + this.majMenu() + + if (this.autoflush) this.flush(true) } Client.prototype.pageSuivante = function(numConv) @@ -547,7 +552,10 @@ Client.prototype.ajouterConversation = function(racine) if (this.conversations[i].root == racine) return false - this.conversations.push({root : racine, page : 1}) + this.conversations.push({root : racine, page : 1}) + + if (this.autoflush) this.flush(true) + return true } @@ -558,7 +566,9 @@ Client.prototype.supprimerConversation = function(num) // décalage TODO : supprimer le dernier élément for (var i = num; i < this.conversations.length - 1; i++) this.conversations[i] = this.conversations[i+1] - this.conversations.pop() + this.conversations.pop() + + if (this.autoflush) this.flush(true) } Client.prototype.getJSONLogin = function(login, password)