euphorik.Trolls.prototype.ajouterTrollEvent = function(data) {
var thisTrolls = this;
+
+ console.log(data)
var XHTML = "";
- data.trolls.each(function(trollData) {
+ data.trolls.each(function(i, trollData) {
var troll = new euphorik.Troll(trollData.content, trollData.author);
var trollId = trollData.troll_id;
thisTrolls.trolls[trollId] = troll;
-
+
XHTML +=
'<div id="troll' + trollId + '" class="troll">' +
'<span class="content">' + thisTrolls.formateur.traitementComplet(troll.content, troll.author) + '</span>' +
$(rep_ebin)/euphorik_protocole.beam \
$(rep_ebin)/euphorik_daemon.beam \
$(rep_ebin)/euphorik_bd.beam \
-$(rep_ebin)/euphorik_bd_update.beam \
+$(rep_ebin)/euphorik_bd_admin.beam \
$(rep_ebin)/euphorik_common.beam \
$(rep_ebin)/euphorik_test.beam
erlc $(erlc_params)
# Module pour la mise à jour de la BD
-$(rep_ebin)/euphorik_bd_update.beam: $(rep_erl)/euphorik_bd_update.erl $(rep_erl)/euphorik_bd.erl $(rep_include)/euphorik_bd.hrl $(rep_include)/euphorik_defines.hrl
+$(rep_ebin)/euphorik_bd_admin.beam: $(rep_erl)/euphorik_bd_admin.erl $(rep_erl)/euphorik_bd.erl $(rep_include)/euphorik_bd.hrl $(rep_include)/euphorik_defines.hrl
erlc $(erlc_params)
# Module permettant l'extraction des conversations du minichat
# erlc $(erlc_params)
# Module effectuant periodiquement certaines tâches
-$(rep_ebin)/euphorik_daemon.beam: $(rep_erl)/euphorik_daemon.erl $(rep_include)/euphorik_defines.hrl
+$(rep_ebin)/euphorik_daemon.beam: $(rep_erl)/euphorik_daemon.erl $(rep_include)/euphorik_defines.hrl $(rep_erl)/euphorik_bd_admin.erl
erlc $(erlc_params)
# Module avec plein de bordel dedant