The functionality on sched 2.3, especially the maps view, looks great.
But I’m having a problem with dhtmlxscheduler_map_view.js.
It is breaking in function C(G) on the line:
H.style.height = (scheduler._y - scheduler.xy.nav_height) + “px”;
where scheduler._y (and in the next line) scheduler._x are not defined.
Neither of these appear in the scheduler object.
Is there a code issue here? Or I am failing to get the event data from rthe server correctly set up?
Thanks in advance.
Think I’ve found that one…
In the dhtmlxscheduler.js scheduler.init function the line this.set_sizes(); should be moved above the line this.init_templates();.
So the function should read as follows:
scheduler.init=function(id,date,mode){
date=date||(new Date());
mode=mode||“week”;
this._obj=(typeof id == "string")?document.getElementById(id):id;
this._els=[];
this._scroll=true;
this._quirks=(_isIE && document.compatMode == "BackCompat");
this._quirks7=(_isIE && navigator.appVersion.indexOf("MSIE 8")==-1);
this.get_elements();
this.set_sizes();
this.init_templates();
this.set_actions();
dhtmlxEvent(window,"resize",function(){
window.clearTimeout(scheduler._resize_timer);
scheduler._resize_timer=window.setTimeout(function(){
if (scheduler.callEvent("onSchedulerResize",[]))
scheduler.update_view();
}, 100);
})
//this.set_sizes(); - Statement causes error when left here...
this.setCurrentView(date,mode);
};
Ilya
#3
Hello,
Thank you for your feedback.
Problem was confirmed and fixed locally.
Fix will be included in the upcoming release.