mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Fix holidays in sidebox calendar
This commit is contained in:
parent
23f9a9a75b
commit
efc7048c82
@ -2773,9 +2773,9 @@ app.classes.calendar = AppJS.extend(
|
|||||||
var tempDate = new Date();
|
var tempDate = new Date();
|
||||||
var today = new Date(tempDate.getFullYear(), tempDate.getUTCMonth(), tempDate.getUTCDate());
|
var today = new Date(tempDate.getFullYear(), tempDate.getUTCMonth(), tempDate.getUTCDate());
|
||||||
var holidays = et2_calendar_daycol.get_holidays({day_class_holiday: function() {}}, date.getFullYear());
|
var holidays = et2_calendar_daycol.get_holidays({day_class_holiday: function() {}}, date.getFullYear());
|
||||||
var day_holidays = holidays[''+date.getUTCFullYear() +
|
var day_holidays = holidays[''+date.getFullYear() +
|
||||||
sprintf("%02d",date.getUTCMonth()+1) +
|
sprintf("%02d",date.getMonth()+1) +
|
||||||
sprintf("%02d",date.getUTCDate())];
|
sprintf("%02d",date.getDate())];
|
||||||
var css_class = '';
|
var css_class = '';
|
||||||
var tooltip = '';
|
var tooltip = '';
|
||||||
if(date.getTime() == today.getTime())
|
if(date.getTime() == today.getTime())
|
||||||
|
Loading…
Reference in New Issue
Block a user