X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageAdmin.js;h=97c024367005a9d1f98b682ade66e9517a91c68d;hp=cb7f51e2a74e58e7a07b8d6c49feda2a33805cc0;hb=63d7601eeee2660728be1ff778dd7e6a04246ee5;hpb=327c3bd99f586f3cf3af55f9adb10a71eb78cdd4 diff --git a/js/pageAdmin.js b/js/pageAdmin.js index cb7f51e..97c0243 100644 --- a/js/pageAdmin.js +++ b/js/pageAdmin.js @@ -1,4 +1,20 @@ -// coding: utf-8 +// coding: utf-8 +// Copyright 2008 Grégory Burri +// +// This file is part of Euphorik. +// +// Euphorik is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Euphorik is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Euphorik. If not, see . function PageAdmin(client, formateur, util) { @@ -16,8 +32,8 @@ function PageAdmin(client, formateur, util) PageAdmin.prototype.contenu = function() { return '

Trolls

\ -

Un troll est un sujet à débat, en général une question.

\ -

Chaque semaine untrolls troll est choisit au hasard parmis les trolls proposés et devient le troll de la semaine.

\ +

Un troll est un sujet à débat, en général une question, affiché sur la page principale.

\ +

Chaque semaine un troll est choisi au hasard parmis les trolls proposés et devient le troll de la semaine.

\
\

\ \ @@ -75,7 +91,7 @@ PageAdmin.prototype.posterTroll = function() "content" : content } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -85,7 +101,7 @@ PageAdmin.prototype.posterTroll = function() success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "ok") { @@ -116,7 +132,7 @@ PageAdmin.prototype.majIPs = function() "cookie" : this.client.cookie } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -126,7 +142,7 @@ PageAdmin.prototype.majIPs = function() success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "list_banned_ips") { @@ -197,7 +213,7 @@ PageAdmin.prototype.deban = function(ip) "ip" : ip } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -207,7 +223,7 @@ PageAdmin.prototype.deban = function(ip) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) switch(data["reply"]) { case "error" : @@ -386,7 +402,7 @@ Trolls.prototype.modifier = function(id, content) "content" : content } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -396,7 +412,7 @@ Trolls.prototype.modifier = function(id, content) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "error") { thisTrolls.util.messageDialogue(data["error_message"]) @@ -420,7 +436,7 @@ Trolls.prototype.supprimer = function(id) "troll_id" : id } - ;;; dumpObj(dataToSend) + ;; dumpObj(dataToSend) jQuery.ajax( { type: "POST", @@ -430,7 +446,7 @@ Trolls.prototype.supprimer = function(id) success: function(data) { - ;;; dumpObj(data) + ;; dumpObj(data) if (data["reply"] == "error") { thisTrolls.util.messageDialogue(data["error_message"])