www/assets/js/calendrier.js
// When user click on the date, it will set the content of t.
When user click on the date, it will set the content of t.
When user click on the date it will set the content of t .
function ds_sh(t) {
    ds_element = t;
    var ds_sh_date = new Date();
    ds_c_month = ds_sh_date.getMonth() + 1;
    ds_c_year = ds_sh_date.getFullYear();
    ds_draw_calendar(ds_c_month, ds_c_year);
    ds_ce.style.display = '';
    the_left = ds_getleft(t);
    the_top = ds_gettop(t) + t.offsetHeight;
    ds_ce.style.left = the_left + 'px';
    ds_ce.style.top = the_top + 'px';
    ds_ce.scrollIntoView();
}
function ds_sh ( t ) { ds_element = t ; var ds_sh_date = new Date ( ) ; ds_c_month = ds_sh_date . getMonth ( ) + 1 ; ds_c_year = ds_sh_date . getFullYear ( ) ; ds_draw_calendar ( ds_c_month , ds_c_year ) ; ds_ce . style . display = '' ; the_left = ds_getleft ( t ) ; the_top = ds_gettop ( t ) + t . offsetHeight ; ds_ce . style . left = the_left + 'px' ; ds_ce . style . top = the_top + 'px' ; ds_ce . scrollIntoView ( ) ; }
When user click on the date, it will set the content of t.
When user click on the date it will set the content of t .
// Set the element to set... // Make a new date, and set the current month and year. // Draw the calendar // To change the position properly, we must show it first. // Move the calendar container! // Scroll it into view.