this.pagePrincipale = 1
this.ekMaster = false
+ this.ostentatiousMaster = "light"
// les conversations, une conversation est un objet possédant les attributs suivants :
// - root (entier)
// - page (entier)
- this.conversations = new Array()
+ // - reduit (bool)
+ this.conversations = []
}
Client.prototype.setCss = function(css)
if (this.conversations[i].root == racine)
return false
- this.conversations.push({root : racine, page : 1})
+ this.conversations.push({root : racine, page : 1, reduit : false})
if (this.autoflush) this.flush(true)
return true
{
var conversations = new Array()
for (var i = 0; i < this.conversations.length; i++)
- conversations.push(this.conversations[i].root)
+ conversations.push({root : this.conversations[i].root, minimized : this.conversations[i].reduit})
return conversations
}
"nick_format" : this.nickFormat,
"view_times" : this.viewTimes,
"view_tooltips" : this.viewTooltips,
- "conversations" : this.getJSONConversations()
+ "conversations" : this.getJSONConversations(),
+ "ostentatious_master" : this.ostentatiousMaster
}
}
this.statut = statut
this.majMenu()
+ this.majLogo()
}
/**
this.nickFormat = data["nick_format"]
this.viewTimes = data["view_times"]
this.viewTooltips = data["view_tooltips"]
+ this.ostentatiousMaster = data["ostentatious_master"]
// la page de la conversation principale
this.pagePrincipale = 1
// les conversations
this.conversations = data["conversations"]
for (var i = 0; i < this.conversations.length; i++)
- this.conversations[i] = {root : this.conversations[i], page : 1}
+ this.conversations[i] = {root : this.conversations[i].root, page : 1, reduit : this.conversations[i].minimized}
this.majBulle()
this.majCssSelectionee()
+ //this.majLogo()
}
}
}
}
+/**
+ * Change la "class" du logo en fonction du statut de ekMaster.
+ */
+Client.prototype.majLogo = function()
+{
+ if (this.ekMaster)
+ $("#logo").addClass("ekMaster")
+ else
+ $("#logo").removeClass("ekMaster")
+}
+
+
Client.prototype.slap = function(userId, raison)
{
var thisClient = this