From: cajus Date: Fri, 2 Oct 2009 08:30:19 +0000 (+0000) Subject: Restore optical behaviour X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9fb4728246863d1bda98e5eea1b4451477675399;p=gosa.git Restore optical behaviour git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14459 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/generic.tpl b/gosa-plugins/mail/personal/mail/generic.tpl index 3945eb378..215d7424e 100644 --- a/gosa-plugins/mail/personal/mail/generic.tpl +++ b/gosa-plugins/mail/personal/mail/generic.tpl @@ -98,7 +98,7 @@ {render acl=$gosaMailDeliveryModeCACL} - +
{if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"} {/if} @@ -305,13 +305,18 @@ alert("yes"); function changeStates() { - if(document.getElementById('use_vacation').checked){ - document.getElementById("datepicker-gosaVacationStart_image").style.visibility= "visible"; - document.getElementById("datepicker-gosaVacationStop_image").style.visibility= "visible"; + if($('own_script').checked) { + $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable"); + $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide"); + } else { + if($('use_vacation').checked) { + $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("enable"); + $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("show"); }else{ - document.getElementById("datepicker-gosaVacationStart_image").style.visibility= "hidden"; - document.getElementById("datepicker-gosaVacationStop_image").style.visibility= "hidden"; + $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable"); + $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide"); } + } } {/literal}