We are running into a problem if the page containing dhtmlxscheduler v3.0 is re-loaded. If the user attempts to create a new event, the scheduler recalls the last event that was created or edited. It then fails to cancel, save or delete. This only happens if the page is reloaded and only if the user has invoked lightbox when the page was first loaded. Are there any special cleanup APIs that must be called when the dhtmlxscheduler is destroyed or when it is reloaded?
Upon creating a new event with lightbox, the following error is shown in the console:
document.getElementById(e[f].id) is null
…te,c.end_date,c)):(d[1].innerHTML=this.templates.event_header(c.start_date,c.end…
dhtmlx…uler.js (line 177)
Pressing cancel produces:
a is undefined
…nt=null):b&&this.callEvent(“onEventChanged”,[a.id,a])};scheduler.getEvents=funct…
dhtmlx…uler.js (line 154)
Pressing save produces:
a is null
…nction(a){return a.innerHTML||""},focus:function(){}},textarea:{render:function(…
dhtmlx…uler.js (line 167)
Pressing delete produces:
c is undefined
…)[b]:this._userdata[b]};scheduler.setEventTextStyle=function(a,b){this.for_rende…
dhtmlx…uler.js (line 194)
We are using connector for persistence; however the log file does not show any errors. Here is the tail of SchedulerConnector.log:
Log started, Tue May 22 15:03:16 EDT 2012
CScheduler.configure(): created SchedulerConnector c
CScheduler.configure(): before c.render_table()
DB query
SELECT eID,eStart,eEnd,eDescription,eNotes,oID,pID,dID,eStatus FROM tblevents
Done in : 11ms
====================================
Log started, Tue May 22 15:03:31 EDT 2012
CScheduler.configure(): created SchedulerConnector c
CScheduler.configure(): before c.render_table()
DB query
UPDATE tblevents SET eStart=‘2012-05-22 07:00’,eEnd=‘2012-05-22 08:30’,eDescription=‘budget review’,eNotes=‘Sales budget review weekly meeting’,oID=‘5’,pID=‘6’,dID=‘6’,eStatus=‘Confirmed’ WHERE eID=‘30’
Done in : 2ms
====================================
Log started, Tue May 22 15:04:30 EDT 2012
CScheduler.configure(): created SchedulerConnector c
CScheduler.configure(): before c.render_table()
DB query
SELECT eID,eStart,eEnd,eDescription,eNotes,oID,pID,dID,eStatus FROM tblevents
Done in : 3ms