How reload scheduler so, that actuall view mode and date remained the same?
I tried this
function reloadCalendar() {
scheduler.attachEvent("onBeforeViewChange", function (old_mode, old_date, mode, date) {
scheduler.clearAll();
scheduler.load("/admin/crm/kalendar.script.php?datum="+String(old_date).substr(0, 15)+"&mode="+old_mode);
});
scheduler.setCurrentView(new Date(), 'month');
}
this almost works, but after “reload” I can’t change view mode. And via firebug I know that ajax still “loading” even if XML response comes with no problem.
I thought that too, but I must send 2 parameters in url - date and mode, so I don’t know how these two parameters before update (load) get.
I’ll try use cookies