X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=8487f776b7a483a387839202d146d193ce2c9a63;hp=a20ee37c3520b84b5bfa28ed04d9a09fc6b245cf;hb=0531ee46484ef22f402191cc4dc84ca07f155fe4;hpb=14cdea5b82fb860e309a2fa36fc06bfa0d7a8c29 diff --git a/js/euphorik.js b/js/euphorik.js index a20ee37..8487f77 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -12,7 +12,7 @@ * Normalement 'const' à la place de 'var' mais non supporté par IE7. */ var conf = { - nbMessageAffiche : 80, // (par page) + nbMessageAffiche : 10, // (par page) pseudoDefaut : "", tempsAffichageMessageDialogue : 4000, // en ms smiles : { @@ -433,6 +433,24 @@ Client.prototype.setCss = function(css) this.flush() } +Client.prototype.pageSuivante = function(numConv) +{ + if (numConv < 0) + this.pagePrincipale += 1 + else + this.conversations[numConv].page += 1 + this.flush(false) +} + +Client.prototype.pagePrecedente = function(numConv) +{ + if (numConv < 0) + this.pagePrincipale -= 1 + else + this.conversations[numConv].page -= 1 + this.flush(false) +} + /** * Ajoute une conversation à la vue de l'utilisateur. * Le profile de l'utilisateur est directement sauvegardé sur le serveur.