X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageAdmin.js;h=ab91eecd042caccb142acd12a29c62e637ea9589;hp=8fc6e225b87b2ccfd47e2f6e63e543df78edd66a;hb=deff7a2f11dca2b300b258d1e93d71e3b2e34c84;hpb=c01d54fd6a515a6f2860e3b18ff574afa5caa83b diff --git a/js/pageAdmin.js b/js/pageAdmin.js index 8fc6e22..ab91eec 100644 --- a/js/pageAdmin.js +++ b/js/pageAdmin.js @@ -26,7 +26,7 @@ function PageAdmin(client, formateur, util) this.formateur = formateur this.util = util - this.pageEvent = new PageEvent("admin", this.util) + this.pageEvent = new euphorik.PageEvent("admin", this.util) // le timer qui rappelle periodiquement le rafraichissement des IP bannies this.timeoutIDmajIPs = null @@ -108,7 +108,7 @@ PageAdmin.prototype.posterTroll = function() var dataToSend = { - "header" : { "action" : "put_troll", "version" : conf.versionProtocole }, + "header" : { "action" : "put_troll", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie, "content" : content } @@ -147,7 +147,7 @@ PageAdmin.prototype.majIPs = function() var dataToSend = { - "header" : { "action" : "list_banned_ips", "version" : conf.versionProtocole }, + "header" : { "action" : "list_banned_ips", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie } @@ -192,7 +192,7 @@ PageAdmin.prototype.majIPs = function() $(".deban", this).click( function() { - thisPageAdmin.util.messageDialogue("Êtes-vous sur de vouloir débannir l'IP ''" + ip + "'' ?", messageType.question, + thisPageAdmin.util.messageDialogue("Êtes-vous sur de vouloir débannir l'IP ''" + ip + "'' ?", euphorik.Util.messageType.question, {"Oui" : function() { thisPageAdmin.deban(ip) @@ -227,7 +227,7 @@ PageAdmin.prototype.deban = function(ip) var dataToSend = { - "header" : { "action" : "unban", "version" : conf.versionProtocole }, + "header" : { "action" : "unban", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie, "ip" : ip } @@ -335,7 +335,7 @@ Trolls.prototype.ajouterTrollEvent = function(data) { thisTrolls.util.messageDialogue( "Êtes-vous sur de vouloir supprimer le troll \"" + thisTrolls.trolls[id].content + "\" ?", - messageType.question, + euphorik.Util.messageType.question, { "oui" : function() { @@ -400,7 +400,7 @@ Trolls.prototype.modifier = function(id, content) var dataToSend = { - "header" : { "action" : "mod_troll", "version" : conf.versionProtocole }, + "header" : { "action" : "mod_troll", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie, "troll_id" : id, "content" : content @@ -433,7 +433,7 @@ Trolls.prototype.supprimer = function(id) var dataToSend = { - "header" : { "action" : "del_troll", "version" : conf.versionProtocole }, + "header" : { "action" : "del_troll", "version" : euphorik.conf.versionProtocole }, "cookie" : this.client.cookie, "troll_id" : id }