Thank you for the answer.
[code] scheduler.config.collision_limit = 1;
scheduler.locale.labels.unit_tab = “Sale”;
scheduler.locale.labels.grupy_tab = “Grupy”;
scheduler.locale.labels.wykladowcy_tab = “Wykładow.”;
scheduler.locale.labels.section_time=“Czas”;
scheduler.locale.labels.section_sala=“Sala”;
scheduler.locale.labels.section_przedmiot=“Przedmiot”;
scheduler.locale.labels.section_wykladowca=“Wykładowca”;
scheduler.locale.labels.section_szkola=“Szkoła”;
scheduler.locale.labels.section_komentarz=“Komentarz”;
scheduler.locale.labels.section_grupa=“Grupa”;
scheduler.config.first_hour = 7;
scheduler.config.last_hour = 22;
scheduler.config.start_on_monday = true;
scheduler.config.event_duration = 90; //specify event duration in minutes for auto end time
scheduler.config.auto_end_date = true;
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.lightbox.sections=[
{name:"przedmiot", height:23, type:"select", options:scheduler.serverList("przedmiot_id"), map_to:"przedmiot_id" },
{name:"sala", height:23, type:"select", options:scheduler.serverList("sala_id"), map_to:"sala_id" },
{name:"wykladowca", height:23, type:"select", options:scheduler.serverList("wykladowca_id"), map_to:"wykladowca_id" },
{name:"grupa", height:23, type:"select", options:scheduler.serverList("grupa_id"), map_to:"grupa_id" },
{name:"szkola", height:23, type:"select", options:scheduler.serverList("szkola_id"), map_to:"szkola_id" },
{name:"komentarz", height:130, map_to:"komentarz", type:"textarea" , focus:true},
{name:"time", height:72, type:"time", map_to:"auto"}
]
scheduler.createUnitsView({
name:"unit",
property:"sala_id",
list:scheduler.serverList("sala_id"),
size:12,
step:5
});
scheduler.createUnitsView({
name:"grupy",
property:"grupa_id",
list:scheduler.serverList("grupa_id"),
size:10,
step:5
});
scheduler.createUnitsView({
name:"wykladowcy",
property:"wykladowca_id",
list:scheduler.serverList("wykladowca_id"),
size:10,
step:5
});
scheduler.config.multi_day = true;
scheduler.init('scheduler_here',new Date(),"unit");
scheduler.load("inc/slowniki.php");
var dp = new dataProcessor("inc/connector_write.php");
dp.attachEvent("onFullSync", function(){
scheduler.load("inc/slowniki.php");
});
dp.live_updates("http://172.16.1.11:8008/sync");
dp.init(scheduler);
scheduler.addMarkedTimespan({
days: [1,2,3,4,5,6,7], // marks each Friday
zones: [9*60+30,9*60+45, 11*60+15,11*60+30, 13*60,13*60+15, 14*60+45,15*60, 16*60+30,16*60+45, 18*60+15,18*60+30],
css: "przerwa" // the applied css style
});
scheduler.updateView();[/code]
I am using Scheduler v40 std 130813
Event color depends on ‘szkola’ section, and event text depends on ‘przedmiot’, ‘sala’, ‘wykladowca’, ‘grupa’.
When I update another event the previously updated event starts displaying properly (color and text gets updated).