Commit f885e4fd authored by Raph El's avatar Raph El
Browse files

Hotfix raffinerie calendar color tags

parent 312731ed
costum.laRaffinerie3 = {
directoryEvent : function(keyE, valE){
mylog.log("costum.laRaffinerie3.directoryEvent", keyE, valE);
var now = moment().format("YYYY-MM-DD");
......@@ -66,4 +67,22 @@ costum.initHtmlPosition = function(){
$(".footerRaffinerie").removeClass("affix");
}
});
} ;
\ No newline at end of file
} ;
costum.calendar = {
buildCalObj : function(eventObj, taskCal){
var backgroundColor = "#d6d6d6 !important";
$.each(costum.paramsData.poles, function(kT, vT){
//mylog.log("directoryEvent poles", kT, vT);
if(typeof eventObj.tags != "undefined" &&
eventObj.tags != null &&
eventObj.tags.length > 0 &&
$.inArray(kT, eventObj.tags) > -1)
backgroundColor = vT.color+ " !important" ;
});
taskCal.backgroundColor = backgroundColor;
return taskCal;
}
}
\ No newline at end of file
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