Code

Updated datepicker.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Oct 2009 08:07:10 +0000 (08:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Oct 2009 08:07:10 +0000 (08:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14457 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/include/datepicker.js
gosa-plugins/mail/personal/mail/generic.tpl

index 738324708c485573747fbe87aa87ca4817c1a589..1a61639ceb0dae601bb79e86147e3ce80cdb56f3 100644 (file)
@@ -316,8 +316,7 @@ DatePicker.prototype        = {
                this._div.innerHTML = '<div class="datepicker-header"><table class="header" cellspacing="0"><tr><td id="'+ this._id_datepicker_prev_year +'" class="prev_year"> << </td><td id="'+ this._id_datepicker_prev +'" class="prev"> < </td><td id="'+ this._id_datepicker_hdr +'" class="header"></td><td id="'+ this._id_datepicker_next +'" class="next"> > </td><td id="'+ this._id_datepicker_next_year +'" class="next_year"> >> </td></tr></table></div><div class="datepicker-calendar"><table class="body"><tbody id="'+ this._id_datepicker +'-tbody"></tbody></table></div><div id="'+ this._id_datepicker_ftr +'" class="datepicker-footer"></div>';
                
                /* 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})
                ]);
index dde2bfa001196a16097cc7e67be320f40125749e..3945eb3783d60a0553c9c98abb4911465a41a5af 100644 (file)
@@ -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}