From 5b37ba8e761079e165bed658a71827fc6de4cb4c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 15 Jan 2009 10:32:12 +0000 Subject: [PATCH] Updated FAQ git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13354 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/Changelog | 7 +++++ gosa-core/html/include/calendar.js | 42 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/gosa-core/Changelog b/gosa-core/Changelog index f11534cbf..22652a489 100644 --- a/gosa-core/Changelog +++ b/gosa-core/Changelog @@ -1,6 +1,13 @@ GOsa2 changelog =============== +* gosa 2.6.3 + - Fixed several issues, occurred when using templates. + - Fixed problem with department creation, since GOsa 2.6.1. + - Fixed exponential escaping of special chars in dns record entries. + - Added samba domain information to samba tab. + - Removed readonly attributes from samba tab. + * gosa 2.6.2 - Updated german locales - Updated french locales diff --git a/gosa-core/html/include/calendar.js b/gosa-core/html/include/calendar.js index 2e4d5e602..194655ed5 100644 --- a/gosa-core/html/include/calendar.js +++ b/gosa-core/html/include/calendar.js @@ -147,6 +147,40 @@ saveResult(selectedDate,resultForm); } + function populate_sambaPwdCanChange(objForm,resultForm) { + + var yearSel=objForm.sambaPwdCanChange_year.options[objForm.sambaPwdCanChange_year.selectedIndex].text; + var monthIx=objForm.sambaPwdCanChange_month.selectedIndex; + var nextMonthIx=0; + if(monthIx!=11) + nextMonthIx=monthIx+1; + + var nextMonthSel=objForm.sambaPwdCanChange_month.options[nextMonthIx].value; + var monthSel=objForm.sambaPwdCanChange_month.options[monthIx].value; + + var daySel=1; + if(objForm.sambaPwdCanChange_day.selectedIndex!=-1) + daySel=objForm.sambaPwdCanChange_day.options[objForm.sambaPwdCanChange_day.selectedIndex].value; + + var timeOfDayOne = new Date(yearSel, nextMonthSel, 1); + var timeDifference = timeOfDayOne - 86400000; + var timeOfLastDay = new Date(timeDifference); + + var daysInMonth = timeOfLastDay.getDate(); + + if(daySel>daysInMonth) daySel=daysInMonth; + + var selectedDate= new Date(yearSel,monthSel,daySel); + for (var i = 0; i < objForm.sambaPwdCanChange_day.length; i++) { + objForm.sambaPwdCanChange_day.options[0] = null; + } + for (var i = 0; i < daysInMonth; i++) { + objForm.sambaPwdCanChange_day.options[i] = new Option(i+1); + } + objForm.sambaPwdCanChange_day.selectedIndex=daySel-1; + saveResult(selectedDate,resultForm); + } + function createResult_sambaLogonTime(objForm,resultForm){ yearSel=objForm.sambaLogonTime_year.options[objForm.sambaLogonTime_year.selectedIndex].text; monthIx=objForm.sambaLogonTime_month.selectedIndex; @@ -171,6 +205,14 @@ selectedDate= new Date(yearSel,monthSel,daySel); saveResult(selectedDate,resultForm); } + function createResult_sambaPwdCanChange(objForm,resultForm){ + yearSel=objForm.sambaPwdCanChange_year.options[objForm.sambaPwdCanChange_year.selectedIndex].text; + monthIx=objForm.sambaPwdCanChange_month.selectedIndex; + monthSel=objForm.sambaPwdCanChange_month.options[monthIx].value; + daySel=objForm.sambaPwdCanChange_day.options[objForm.sambaPwdCanChange_day.selectedIndex].value; + selectedDate= new Date(yearSel,monthSel,daySel); + saveResult(selectedDate,resultForm); + } function createResult2(objForm,resultForm){ yearSel=objForm.syear.options[objForm.syear.selectedIndex].text; -- 2.30.2