projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD script permettant la mise à jour de la BD et le rechargement des modules lors...
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
ca84a02
..
c796e41
100755
(executable)
--- a/
js/euphorik.js
+++ b/
js/euphorik.js
@@
-31,7
+31,9
@@
var conf = {
\r
nbMessageAffiche : 40, // (par page)
pseudoDefaut : "<nick>",
\r
var conf = {
\r
nbMessageAffiche : 40, // (par page)
pseudoDefaut : "<nick>",
\r
- tempsAffichageMessageDialogue : 4000, // en ms
\r
+ tempsAffichageMessageDialogue : 4000, // en ms
+ tempsKick : 15, // en minute
+ tempsBan : 60 * 24 * 3, // en minutes (3jours)
\r
smiles : {
\r
"smile" : [/:\)/g, /:-\)/g],
\r
"bigsmile" : [/:D/g, /:-D/g],
\r
smiles : {
\r
"smile" : [/:\)/g, /:-\)/g],
\r
"bigsmile" : [/:D/g, /:-D/g],
\r
@@
-771,7
+773,7
@@
Client.prototype.enregistrement = function(login, password)
Client.prototype.connexion = function(messageJson)
{
Client.prototype.connexion = function(messageJson)
{
- ;;
;
dumpObj(messageJson)
+ ;; dumpObj(messageJson)
thisClient = this
jQuery.ajax(
{
thisClient = this
jQuery.ajax(
{
@@
-783,7
+785,7
@@
Client.prototype.connexion = function(messageJson)
success:
function(data)
{
success:
function(data)
{
- ;;
;
dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "error")
thisClient.util.messageDialogue(data["error_message"])
else
if (data["reply"] == "error")
thisClient.util.messageDialogue(data["error_message"])
else
@@
-850,7
+852,7
@@
Client.prototype.flush = function(async)
var thisClient = this
var ok = true
var thisClient = this
var ok = true
- ;;
;
dumpObj(this.getJSONProfile())
+ ;; dumpObj(this.getJSONProfile())
jQuery.ajax(
{
async: async,
jQuery.ajax(
{
async: async,
@@
-861,7
+863,7
@@
Client.prototype.flush = function(async)
success:
function(data)
{
success:
function(data)
{
- ;;
;
dumpObj(data)
+ ;; dumpObj(data)
if (data["reply"] == "error")
{
thisClient.util.messageDialogue(data["error_message"])
if (data["reply"] == "error")
{
thisClient.util.messageDialogue(data["error_message"])
@@
-945,7
+947,7
@@
Client.prototype.ban = function(userId, raison, minutes)
// par défaut un ban correspond à 3 jours
if (typeof(minutes) == "undefined")
// par défaut un ban correspond à 3 jours
if (typeof(minutes) == "undefined")
- minutes =
60 * 24 * 3
+ minutes =
conf.tempsBan;
jQuery.ajax({
type: "POST",
jQuery.ajax({
type: "POST",
@@
-970,7
+972,7
@@
Client.prototype.ban = function(userId, raison, minutes)
Client.prototype.kick = function(userId, raison)
{
Client.prototype.kick = function(userId, raison)
{
- this.ban(userId, raison,
15
)
+ this.ban(userId, raison,
conf.tempsKick
)
}
///////////////////////////////////////////////////////////////////////////////////////////////////
}
///////////////////////////////////////////////////////////////////////////////////////////////////
@@
-1028,7
+1030,7
@@
PageEvent.prototype.waitEvent = function(funSend, funReceive)
for (v in poulpe)
dataToSend[v] = poulpe[v]
for (v in poulpe)
dataToSend[v] = poulpe[v]
- ;;
;
dumpObj(dataToSend)
+ ;; dumpObj(dataToSend)
this.attenteCourante = jQuery.ajax({
type: "POST",
this.attenteCourante = jQuery.ajax({
type: "POST",
@@
-1038,7
+1040,7
@@
PageEvent.prototype.waitEvent = function(funSend, funReceive)
success:
function(data)
{
success:
function(data)
{
- ;;
;
dumpObj(data)
+ ;; dumpObj(data)
funReceive(data)
funReceive(data)
@@
-1076,7
+1078,7
@@
function initialiserListeStyles(client)
}
// charge dynamiquement le script de debug
}
// charge dynamiquement le script de debug
-;;
;
jQuery.ajax({async : false, url : "js/debug.js", dataType : "script"})
+;; jQuery.ajax({async : false, url : "js/debug.js", dataType : "script"})
\r
// le main
$(document).ready(
\r
// le main
$(document).ready(