How can I get the value (true or false) or checked / not checked for the full_day element? Searched the documentation high & low and it is not in there…
Nothing I’ve tried is working:
scheduler.attachEvent( ‘onClick’, function ( id, e ){ //
var event = scheduler.getEvent(id);
alert(event.full_day); // throws an error
return true;
// if( document.getElementsByName( ‘full_day’ ) != ‘undefined’ ) {
//if( document.getElementsByName( ‘full_day’ ).checked ) {
// console.log(‘not undefined’);
// }
// else {
// console.log(‘undefined’);
// }
// }
});
This did not work either:
scheduler.attachEvent( ‘onClick’, function ( id, e ){ //
var event = scheduler.getEvent( id );
if( event.start_date.getHours() == 0 && event.start_date.getMinutes() == 0 && event.end_date.getHours() == 0 && event.end_date.getMinutes() == 0 ) {
console.log( ‘this is a full_day’ );
document.getElementsByClassName( ‘dhx_section_time’ ).className = ‘dhx_section_time hideBlock’;
}
else {
console.log( ‘not a full_day’ );
document.getElementsByClassName( ‘dhx_section_time’ ).className = ‘dhx_section_time’;
}
return true;
});