X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageAdmin.js;h=e837a91069d54f4af0d59bde11b35ad9456098b4;hp=8fc6e225b87b2ccfd47e2f6e63e543df78edd66a;hb=55b0291a691e56465277811aac749e930509fea2;hpb=2a717d2ba853bc11778d5bc9772604e0f0e22dc0 diff --git a/js/pageAdmin.js b/js/pageAdmin.js index 8fc6e22..e837a91 100644 --- a/js/pageAdmin.js +++ b/js/pageAdmin.js @@ -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 }