Hi!
I have a problem with Internet explorer 8, my scheduler in Firefox and Safari works right, but on Internet Explorer 8 appears the loading and don’t load the scheduler. This is my code:
<script type="text/javascript">
scheduler.locale.labels.unit_tab = "<?= __('Employers') ?>";
scheduler.config.details_on_dblclick=true;
scheduler.config.dblclick_create = false;
scheduler.config.xml_date="%Y-%m-%d %H:%i:%s";
var prioritats=[
{key:0, label:"<?= __('-- Select priority') ?>"},
{key:1, label:"<?= __('Low') ?>"},
{key:2, label:"<?= __('Medium') ?>"},
{key:3, label:"<?= __('Hight') ?>"},
];
scheduler.config.lightbox.sections=[
{name:"description", height:130, map_to:"description", type:"textarea" , focus:true},
{name:"priority", height:34, map_to:"priority", type:"select", options:prioritats},
{name:"status", height:34, map_to:"status_id", type:"select", options:scheduler.serverList("estats")},
{name:"employer", height:35, type:"select",options:scheduler.serverList("employers"), map_to:"employer_id" },
{name:"contactname", height:21, map_to:"contact_name", type:"textarea"},
{name:"contactphone", height:21, map_to:"contact_phone", type:"textarea"},
{name:"contactemail", height:21, map_to:"contact_email", type:"textarea"},
{name:"time", height:74, type:"time", map_to:"auto"}
];
scheduler.config.multi_day = true;
scheduler.locale.labels.section_status="<?= __('Status') ?>";
scheduler.locale.labels.section_employer="<?= __('Employer') ?>";
scheduler.locale.labels.section_priority="<?= __('Priority') ?>";
scheduler.locale.labels.section_contactname="<?= __('Contact Name') ?>";
scheduler.locale.labels.section_contactphone="<?= __('Contact Phone') ?>";
scheduler.locale.labels.section_contactemail="<?= __('Contact Email') ?>";
scheduler.config.icons_select=["icon_details","icon_edit"];
var add_event_btn = document.getElementById('add_event');
add_event_btn.onclick = function() {
window.location="<?= url_for('task/create') ?>";
}
scheduler.config.first_hour = 6;
scheduler.config.show_loading = true;
scheduler.templates.event_class=function(start,end,event){
switch(event.status_id){
case "1" : return "todo";
case "2" : return "inprogress";
case "3" : return "reported";
case "4" : return "closed";
}
}
scheduler.templates.event_bar_text=function(start,end,event){
return "<span title='"+event.description+"'>"+event.text+"</span>";
}
scheduler.createUnitsView({
name:"unit",
property:"employer_id",
list:scheduler.serverList("employers")
});
var fecha=new Date();
scheduler.init('scheduler_here',new Date(fecha.getFullYear(),fecha.getMonth(),fecha.getDate()),"unit");
scheduler.setLoadMode("month");
scheduler.load("<?= url_for('calendar/seleccionarEvents') ?>");
var dp = new dataProcessor("<?= url_for('calendar/seleccionarEvents') ?>");
dp.init(scheduler);
</script>
What could be the problem?
Thanks!
- Zaida -