When I load multiple paths with:
scheduler.load(["/calendars/2/calendar_dhtmlx_entries", “/calendars/3/calendar_dhtmlx_entries”]);
Then the loading indicator will disappear after the first path has been loaded. It would be nice if the loading indicator would stay until all the files have been loaded.
Tys
The issue is confirmed.
We’ll try to solve the issue in the next scheduler version.
Here is my temporary fix:
// Custom loading indicator for bug fix
scheduler.config.show_loading = false;
var loadingCount = 0;
var loadingIndicator = null;
scheduler.attachEvent(“onXLS”,function() {
if (loadingCount == 0) {
loadingIndicator = document.createElement(“DIV”);
loadingIndicator.className=‘dhx_loading’;
loadingIndicator.style.left = Math.round((this._x-128)/2)+“px”;
loadingIndicator.style.top = Math.round((this._y-15)/2)+“px”;
this._obj.appendChild(loadingIndicator);
}
loadingCount++;
});
scheduler.attachEvent(“onXLE”,function(){
loadingCount–;
if (loadingCount == 0)
{
if (typeof loadingIndicator == “object”)
{
this._obj.removeChild(loadingIndicator);
loadingIndicator = null;
}
}
});