chet550
Member
Posted 10 months ago #
I love this plugin. Eran Miller, if you're reading, you've done a brilliant job with this one.
I was wondering if anyone knows a way when scheduling and event to set up a custom time, as opposed to the predetermined 'every half-hour' set up? Even if a custom time is too difficult, I'm looking to have the times in 5 minute increments, so I can schedule an event at say... 8:15 or 8:20pm.
I really hope there is a way to do this, because everything else about this calendar is PERFECT for my needs!
Cheers,
R.
chet550
Member
Posted 10 months ago #
Ok, figured it out on my own.
In the admin-event.php file, adjust the "step" from '30' to whatever increment you like. I needed 5 minute increments, so I entered '5.'
var times = jQuery('#start_time,#end_time').timePicker({
step: 5,
show24Hours: false,
separator:':'
Thanks me,
R.
Thanks R!
Sorry I didn't see your post until now, busy working out the kinks to the next version. Although I see you figured it out without any assistance from me.
Eran
mcsworld1
Member
Posted 10 months ago #
I actually found the reference in jquery.init_admin_calendar.js
and it works.
Thanks !
Mark
The javascript code was moved outside the php files for a cleaner implementation. All calendar javascript now lives in the init_*.js files.
Eran