Hello,
I modified the appearance of the scheduler’s header with the function scheduler.templates.week_scale_date like this :
function headerTotalWeek(date) {
return scheduler.date.date_to_str(scheduler.config.default_date)(date) +
"<div class='totalBarWeek'>value1</div>";
}
scheduler.templates.week_scale_date = function(date){
return headerTotalWeek(date);
};
After that, i have to wait for the processing of my data to push the new value in my divs .totalBarWeek :
var x = document.getElementsByClassName("totalGlobal");
var i;
for (i = 0; i < x.length; i++) {
x[i].innerHTML= "value2";
}
The problem arises after resizing the window of my browser.
the values of my divs are reset to “value1”
How can disable the refresh of the scheduler, after resizing the window of my browser ?
Is there anyway we can prevent the function scheduler.templates.week_scale_date from being called after resizing the browser’s window ?
thank you for your help.