Buy Now
Sign in

Calendar: disable minute selection mode

mauropiro , October 15 2018, 13:46
M
mauropiro 52
October 15 2018, 13:46 #380791
Dear Sirs,
According to the site: https://github.com/mdehoog/Semantic-UI-calendar, I tried to put in Extra attributes calendar field:data-disableMinute:falseordisableMinute:falseBut, none of them work to disable minute selection mode.
Please, help with that,
Thank you
Mauro    
M
mauropiro 52
October 15 2018, 14:14 #380793
Sorry, correcting the merged text above:
--
I tried to put in Extra attributes calendar field:
data-disableMinute:false
or
disableMinute:false
But, none of them work to disable minute selection mode.
--
Thank you
Mauro
healyhatman 8
October 15 2018, 22:24 #380811
Wouldn't you want disableMinute:true ?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
M
mauropiro 52
October 17 2018, 11:55 #380862
Dear Healyhatman
Sorry for the delay.
I want to disable the front end selection marked as red. I only need 'o'clocks' (full hours).
calendar_min.png
Thank you
Mauro
Attachments
calendar_min.png
calendar_min.png
(16.21 KiB)
520 Downloads/Views
healyhatman 8
October 17 2018, 13:05 #380865
No I don't think there's a way built-in.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
healyhatman 8
October 17 2018, 13:30 #380866
OKAY so there is a way built in, there's a "disableMinute" setting included with the calendar code, I'm just trying to figure out how to actually set it.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
M
mauropiro 52
October 18 2018, 13:02 #380900
Thank you Healyhatman
healyhatman 8
October 18 2018, 13:05 #380902
I've sent an email to Max, we'll see if he gets back to me there or here on this post. I'm happy to work through and figure things out myself a bit I just need him to point me in the right direction or, better yet, just tell me straight up how to do it
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
M
mauropiro 52
October 18 2018, 17:32 #380913
And I am happy to have helpful people supporting this great tool.
Thank you Healyhatman.
M
mauropiro 52
October 24 2018, 02:30 #380998
Dear Healyhatman
Did you get the max's answer about this case?
Thank you
Mauro
healyhatman 8
October 24 2018, 02:33 #380999
He said it doesn't currently support that and that he would have to look at the code at a later date.
I eould use the contact link up top to email him and say you also would like the ability to set additional settings using data- tags.
Or ask him to tell me where in the CF code the calendar settings get initialised
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
healyhatman 8
October 24 2018, 10:18 #381017
 1
GOT IT! Max told me where the initialisation is so here's what you do.
Step 1: Understand that until or unless Max makes this change on his end, this fix will be removed every time you update Chronoforms.
Step 2: Navigate to yoursite/libraries/cegcore2/assets/js/g2.boot.js
Step 3: After line 93 ("monthFirst:.......") add the following code (DON'T copy+paste, type it out manually Chronoforums adds hidden characters)
disableMinute: $(calfield).data('disableminute') ? $(calfield).data('disableminute') : false,
Make sure you have the comma at the end, and that you pay attention to the capitalisation as I've used it.
Step 4: In your calendar field, under advanced, put in
data-disableminute:true
DONE. This should also work with any of the other settings for Semantic-UI Calendar. https://github.com/mdehoog/Semantic-UI-Calendar
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
M
mauropiro 52
November 20 2018, 00:00 #381612
 1
 Answer
Dear Healyhatman
Sorry for the late reply, it worked perfectly.
Thanks you two.
Mauro
W
webix 55
April 23 2019, 08:25 #386201
 1
Hi,
First of all thanks for solution - this works like a charm. But it would be great to have it implemented in core on your side to avoid change this every time after updates. Do you have already some idea when disabling minutes will be implemented in core?
Thanks
Alex
admin 28
April 23 2019, 19:57 #386216
Hi Alex,
This has been added to the next update!
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
W
webix 55
April 23 2019, 20:06 #386217
 1
Hi Max,
that's awesome news!
Thanks
Alex,