"Patch for IE 6/7 checking if the Calendar Element is loaded"

This commit is contained in:
Stefan Becker 2008-07-22 14:04:23 +00:00
parent 8d2816b0bb
commit 1569576645

View File

@ -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>';
}