www/assets/js/calendrier.js
// When the user clicks the day.
When the user clicks the day.
When the user clicks the day .
function ds_onclick(d, m, y) {
    ds_hi(); 
    if (typeof(ds_element.value) != 'undefined') {
        ds_element.value = ds_format_date(d, m, y);
    }
    else if (typeof(ds_element.innerHTML) != 'undefined') {
        ds_element.innerHTML = ds_format_date(d, m, y);
    }
    else {
        alert (ds_format_date(d, m, y));
    }
}
function ds_onclick ( d , m , y ) { ds_hi ( ) ; if ( typeof ( ds_element . value ) != 'undefined' ) { ds_element . value = ds_format_date ( d , m , y ) ; } else if ( typeof ( ds_element . innerHTML ) != 'undefined' ) { ds_element . innerHTML = ds_format_date ( d , m , y ) ; } else { alert ( ds_format_date ( d , m , y ) ) ; } }
When the user clicks the day.
When the user clicks the day .
// Hide the calendar. // Set the value of it, if we can. // Maybe we want to set the HTML in it. // I don't know how should we display it, just alert it to user.