From b6dc9649df395927321658d6d802d36e78692d1c Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 14 Nov 2006 11:45:37 +0000 Subject: [PATCH] Fixed Date of Birth handling in IE. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5108 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/calendar.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/html/include/calendar.js b/html/include/calendar.js index 830deb078..7852d9ba2 100644 --- a/html/include/calendar.js +++ b/html/include/calendar.js @@ -4,15 +4,17 @@ monthIx=objForm.month.selectedIndex; nextMonthIx=0; - if(monthIx!=11) + if(monthIx!=11) { nextMonthIx=monthIx+1; + } nextMonthSel=objForm.month.options[nextMonthIx].value; monthSel=objForm.month.options[monthIx].value; daySel=1; - if(objForm.day.selectedIndex!=-1) - daySel=objForm.day.options[objForm.day.selectedIndex].value; + if(objForm.day.selectedIndex!=-1) { + daySel=objForm.day.options[objForm.day.selectedIndex].text; + } timeOfDayOne = new Date(yearSel, nextMonthSel, 1); timeDifference = timeOfDayOne - 86400000; -- 2.30.2