Commit 8e00d312 authored by Clément Damiens's avatar Clément Damiens

fix calendar show dropEvents

parent 872cf1f5
......@@ -201,14 +201,12 @@
countEvent++;
});
// if(typeof dayEvents["startDate"] != "undefined"){
var align = "pull-right";
var d = new Date(startDate);
var numDay = d.getDay();
//console.log("ce jour est le "+numDay+" de la semaine");
if(numDay>0&&numDay<4) align = "pull-left";
var dropdown =
'<button class="btn bg-orange homestead dropdown-toggle" type="button" data-toggle="dropdown">'+
'<button class="btn bg-orange homestead dropdown-toggle showDropEvents" type="button" data-toggle="dropdown">'+
'<span class="hidden-xs">'+countEvent+'</span> <i class="fa fa-calendar hidden-sm hidden-xs"></i>'+
' <span class="caret"></span>'+
'</button>'+
......@@ -217,8 +215,10 @@
'</ul>';
dropdown = $(dropdown);
day.append(dropdown);
// }
//zIndex--;
$(".showDropEvents").click(function(){
$(".showDropEvents").parent().removeClass("focus");
$(this).parent().addClass("focus");
});
return day;
},
makeActive: function(day, dayEvents) {
......
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