summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0eeb6e)
raw | patch | inline | side by side (parent: f0eeb6e)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Nov 2006 11:46:19 +0000 (11:46 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Nov 2006 11:46:19 +0000 (11:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5109 594d385d-05f5-0310-b6e9-bd551577e9d8
html/include/calendar.js | patch | blob | history |
index 830deb078ff93b63c6d001ff7961bde105e02fd7..7852d9ba2d834b1f1776387cf7e77e55ecc9e2ce 100644 (file)
--- a/html/include/calendar.js
+++ b/html/include/calendar.js
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;