From 7d85254376315448cbd8bbd813766e0c49a8fe7a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Oct 2009 08:07:10 +0000 Subject: [PATCH] Updated datepicker. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14457 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/include/datepicker.js | 3 +-- gosa-plugins/mail/personal/mail/generic.tpl | 10 ++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gosa-core/html/include/datepicker.js b/gosa-core/html/include/datepicker.js index 738324708..1a61639ce 100644 --- a/gosa-core/html/include/datepicker.js +++ b/gosa-core/html/include/datepicker.js @@ -316,8 +316,7 @@ DatePicker.prototype = { this._div.innerHTML = '
<< < > >>
'; /* Build the datepicker icon */ - var datepickeropener = Builder.node('table',{className : "datepicker-opener-table"}); - + var datepickeropener = Builder.node('table',{className : "datepicker-opener-table", id: this._id_datepicker + '_image'}); var con = Builder.node('tr',{},[ Builder.node('td',{className : "datepicker-opener", id : "datepicker-opener-"+ this._relative}) ]); diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl index dde2bfa00..3945eb378 100644 --- a/gosa-plugins/mail/personal/mail/generic.tpl +++ b/gosa-plugins/mail/personal/mail/generic.tpl @@ -306,13 +306,11 @@ alert("yes"); function changeStates() { if(document.getElementById('use_vacation').checked){ - document.getElementById("datepicker-opener-gosaVacationStop").style.visibility= "visible"; - document.getElementById("datepicker-opener-gosaVacationStart").style.visibility= "visible"; + document.getElementById("datepicker-gosaVacationStart_image").style.visibility= "visible"; + document.getElementById("datepicker-gosaVacationStop_image").style.visibility= "visible"; }else{ - document.getElementById("datepicker-opener-gosaVacationStop").style.visibility= "hidden"; - document.getElementById("datepicker-opener-gosaVacationStart").style.visibility= "hidden"; - //The prototype way - //$('datepicker-opener-gosaVacationStop').hide(); + document.getElementById("datepicker-gosaVacationStart_image").style.visibility= "hidden"; + document.getElementById("datepicker-gosaVacationStop_image").style.visibility= "hidden"; } } {/literal} -- 2.30.2