forked from extern/egroupware
"Patch for IE 6/7 checking if the Calendar Element is loaded"
This commit is contained in:
parent
8d2816b0bb
commit
1569576645
@ -167,8 +167,9 @@ function monthClicked(calendar,monthstart) {
|
||||
window.location = "'.$monthUrl.'&date=" + monthstart.print("%Y%m%d");
|
||||
}
|
||||
' : '').'
|
||||
Calendar.setup(
|
||||
{
|
||||
if (document.Calendar){
|
||||
Calendar.setup(
|
||||
{
|
||||
flat : "'.$id.'",
|
||||
flatCallback : dateChanged'.($weekUrl ? ',
|
||||
flatWeekCallback : weekClicked' : '').($weekTTip ? ',
|
||||
@ -176,8 +177,10 @@ Calendar.setup(
|
||||
flatMonthCallback : monthClicked' : '').($monthTTip ? ',
|
||||
flatMonthTTip : "'.addslashes($monthTTip).'"' : '').($date ? ',
|
||||
date : "'.$date.'"
|
||||
' : '').' }
|
||||
);
|
||||
' : '').'
|
||||
}
|
||||
);
|
||||
}
|
||||
</script>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user