DHTMLX / scheduler

GPL version of JavaScript Event Scheduler
https://dhtmlx.com/docs/products/dhtmlxScheduler/
GNU General Public License v2.0
311 stars 110 forks source link

Scheduler - Timeline Onclick and OnDoubleClick #1

Closed Seabizkit closed 6 years ago

Seabizkit commented 10 years ago

You can not hook into both... without some custom js code. this is on the time-line

mkozhukh commented 10 years ago

You can add both handlers, the only problem is that in case of dbl-click, single event occurs as well ( because on moment of first click, it is not clear is it part of dbl-click or standalone action )

Seabizkit commented 10 years ago

yeah true but... depending on what the first click is doing it can cancel the action of the second.

SingleClick - get details in an ajax request. DoubleClick - Open dialog for details on event.

I cant remember the details but I'm sure the ajax request... cancels the other operation... I would need to double check. I have already implement my own code... but its frustrating that this is not out-off-the-box considering all the other awe work which has been done.

another issue which would be nice to have built in is having a class on the selected event. I have had to implement my own code here... but would of been nice... to have a default way.

Double click should not fire single click... if what you are saying is true. But i think if you make a ajax request in the first.... it wont do the second.

Thanks...