Categories | Question details Back To List | ||
Scheduler Bug: Loading indicator disappears after first path is loaded even if there are more paths to load. 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 Answer posted by Alex (support) on Dec 15, 2009 01:43 The issue is confirmed. We'll try to solve the issue in the next scheduler version. Answer posted by Tys von Gaza on Dec 15, 2009 19:19 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; } } }); |