Minical in navline

I get the following error when I click on the minical image in the navline of the calendar:
show_minical is not defined

I have included the following after initializing my calendar and loading events:
//Mini calendar in navline div and for details form
function show_minical(){
if (scheduler.isCalendarVisible())
scheduler.destroyCalendar();
else
scheduler.renderCalendar({
position:“dhx_minical_icon”,
date:scheduler._date,
navigation:true,
handler:function(date,calendar){
scheduler.setCurrentView(date);
scheduler.destroyCalendar()
}
});
}

This is my body:

 
 
 

And I have included the following files:
‘microscopy_core/css/dhtmlxscheduler.css’,
‘microscopy_core/css/dhtmlxscheduler_recurring.css’,
‘microscopy_core/css/dhtmlxscheduler_ext.css’,
‘microscopy_core/js/dhtmlxscheduler.js’,
‘microscopy_core/js/dhtmlxscheduler_recurring.js’,
‘microscopy_core/js/dhtmlxscheduler_timeline.js’,
‘microscopy_core/js/dhtmlxscheduler_minical.js’,
‘microscopy_core/js/dhtmlxscheduler_tooltip.js’,
‘microscopy_core/js/dhtmlxscheduler_editors.js’,

What am I missing?

Thanks.

From your code , it seems that show_minical was defined not on top level , but inside some other method. So it is not visible for code outside of this function.

Thanks. That was my problem…I had put it within init();

Is there a way to change the time format for the minical in the details form from DD-MM-YYYY to MM-DD-YYYY or YYYY-MM-DD?

Thanks.

Hello,

Try adding following line before scheduler’s init:

scheduler.templates.calendar_time = scheduler.date.date_to_str("%m-%d-%Y");

Best regards,
Ilya