this.formateur = formateur;
this.util = util;
- this.pageEvent = new euphorik.PageEvent("admin", this.util);
+ this.comet = new Comet("admin", euphorik.conf.versionProtocole);
// le timer qui rappelle periodiquement le rafraichissement des IP bannies
this.timeoutIDmajIPs = null;
* Interface des pages.
*/
euphorik.PageAdmin.prototype.decharger = function() {
- this.pageEvent.stopAttenteCourante();
+ this.comet.stopAttenteCourante();
// supprime le rafraichissement période des ips
if (this.timeoutIDmajIPs) {
euphorik.PageAdmin.prototype.waitEvent = function() {
var thisPageAdmin = this;
- this.pageEvent.waitEvent(
+ this.comet.waitEvent(
function() { return { "last_troll" : thisPageAdmin.trolls.dernierTroll }; },
{
"troll_added" : function(data){ thisPageAdmin.trolls.ajouterTrollEvent(data); },