Commit bbde4d8b authored by Raph El's avatar Raph El

Hotfix

parent 7c664858
......@@ -6,11 +6,11 @@ var agenda = {
startDate : null,
heightScroll : 200,
init : function(pInit){
mylog.log("agenda.init", pInit);
console.log("agenda.init", pInit);
this.dayCount = ( (typeof pInit != "undefined" && typeof pInit.dayCount != "undefined") ? pInit.dayCount : 0 )
},
getDateHtml : function(startMoment){
mylog.log("agenda.getDateHtml", startMoment);
console.log("agenda.getDateHtml", startMoment);
return strdate = '<div class="col-xs-12">'+
'<div class="dayEvent col-xs-12">'+
'<h2 class="text-white date" style="text-transform:inherit;padding-left:15px;">'+
......@@ -21,36 +21,36 @@ var agenda = {
'</div>';
},
appendDateHtml : function(startMoment, container){
mylog.log("agenda.appendDateHtml", startMoment, container);
console.log("agenda.appendDateHtml", startMoment, container);
var strdate = this.getDateHtml(startMoment);
var cont = ( (typeof container != "undefined" && container != null ) ? container : "#dropdown_search" );
$(cont).append(strdate);
},
getStartMoment : function(day){
mylog.log("agenda.getStartMoment", day);
console.log("agenda.getStartMoment", day);
return startMoment = moment(STARTDATE).set('date', moment(STARTDATE).get('date')+day).format();
},
searchDay : function(day){
mylog.log("agenda.searchDay", day);
console.log("agenda.searchDay", day);
var startMoment = this.getStartMoment(day);
mylog.log("agenda.searchDay startMoment", startMoment);
console.log("agenda.searchDay startMoment", startMoment);
var startDDDD = new Date(startMoment);
mylog.log("agenda.searchDay startDDDD", startDDDD);
console.log("agenda.searchDay startDDDD", startDDDD);
searchObject.startDate = Math.floor(startDDDD / 1000);
startSearch(10, 30, searchCallback, true);
},
addDay : function(){
mylog.log("agenda.addDay", this.dayCount);
console.log("agenda.addDay", this.dayCount);
this.dayCount++;
mylog.log("agenda.addDay end", this.dayCount);
console.log("agenda.addDay end", this.dayCount);
this.searchDay(this.dayCount);
},
calculateAgendaWindow : function(nbMonth){
mylog.log("agenda.calculateAgendaWindow", nbMonth);
console.log("agenda.calculateAgendaWindow", nbMonth);
//TODO refaire la fonction et rendre custumisable la date de debut et de fin
mylog.log("directory.js calculateAgendaWindow", nbMonth);
console.log("directory.js calculateAgendaWindow", nbMonth);
//console.log("calculateAgendaWindow", nbMonth);
if(typeof STARTDATE == "undefined") return;
//console.log("calculateAgendaWindow ok");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment