Make calendar dynamically in 3.7

by chavab_1   Last Updated May 22, 2018 05:10 AM

I recently found out that the datepicker and calendar changed a lot from 3.6 to 3.7 and as a result I'm having a problem with my custom backend component. Originally this is the code I was using to initialize my datepickers:

$("input[name^='jform[date]']").each(function(index){ Calendar.setup({ inputField: $(this).attr('id'), ifFormat: '%m/%d/%Y', button: $(this).attr('id') + '_img', align: 'Tl', singleClick: true, firstDay: 0 }); });

I was informed that I now have to use JoomlaCalendar.init() instead of Calendar.setup. My question is if the parameters are set the same way or if they're even the same. I looked around but I can't find much about this update. Is there a core file that I can use as an example or something else? Any help would be appreciated.

Thanx



Related Questions


Populate Joomla Calendar field by jQuery not working

Updated September 30, 2017 16:10 PM

Calendar Field Type

Updated August 24, 2016 08:04 AM


Joomla Calendar for versions >3.7

Updated January 30, 2018 17:10 PM

Calendar Field Showing Incorrect Date

Updated June 16, 2016 08:04 AM