scheduler._prev_selected = null; // just a helper, will store of previously selected event
scheduler.attachEvent("onClick",function(id){
if(scheduler._prev_selected != id) { // if we are selecting some other event...
scheduler.for_rendered(scheduler._prev_selected, function(div){ // .. need to set back previously selected
div.style.zIndex = 1;
});
scheduler.for_rendered(id, function(div){ // .. and move forward currently selected
div.style.zIndex = 2;
});
scheduler._prev_selected = id; // update prev. selected element
}
return false;
});
We will check if it’s possible to do so without additional code.
Kind regards,
Ilya
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan