187 comments found.
Hi, how can i add Css class on event or any other methord to add class with .calentim-container
Hello, you can use `instance.container` to access the container object. I would prefer `ondraw` event because you may lose the styles you’ve added on another draw.
Hi, please is possible to scale this calendar? Like make it bigger or responsive?
Thanks for your answer and time. Best regards, Tomas Lipovsky
Hi Thomas, you can change the dimensions by adding extra CSS styles to the elements. Or you can define the oneCalendarWidth option with the size you want to make the calendars bigger horizontally.
I just purchase your plugin calentim for my webpack project. since it is not a npm package, I have no idea how to set it npm, do you have any idea how I can set up the plugin for webpack ?
Hello, I didn’t use it before but there seems to be a tutorial about it: https://blog.npmjs.org/post/112712169830/making-your-jquery-plugin-work-better-with-npm
Sorry for the many comments
but I still had small something that I would miss.
- hideOutOfRange ignores swipe left and right
- when i click on desktop out of the calendar view than close it. I miss it on mobile when click/touch out of the calendar view to close it
What do you think about?
Yes they are valuable things to add to the plugin. I’ll add them to my todo list.
I found a mistake on select date and time with buttons – http://rettica.com/calentim/docs/readme.html#showing-dropdown-apply-cancel-buttons
If I select a date and then scroll the time over 24 hours then the selected date will be ignored and he add one day on it
the input will change when i click the apply button but it is confusing if the input field don’t have the selected date
That’s the main logic to have the apply changes button. That’s by design.
I know that it is the standard logic but it is confusing when you select the 15.10.2019 and then scrolls 2x over 0 clock to get to the desired time and then click on submit and he inserts 17.10.2019 06:30:00 though you had selected the 15th.
Maybe an option you can set false that he should not count X days higher, no matter how much you turn?
Yes that makes sense. I can do it as an option whether the day selection should also be updated when the time overflows to the next/previous day or the time overflow doesn’t happen at all. Thanks for pointing that out!
I’ve removed the date change via timepickers feature, it’ll be released within the next version (1.3.4).
Works fine
thanks for Update
I also fixed the swipe bug can you confirm it too?
I also fixed the swipe bug can you confirm it too?
Yes on my android mobile phone works fine. At weekend test it with iphone and commit here again.
The docs states: maxDate [moment object|javascript Date Object|string|null]: I’m trying to set the max date to today using: maxDate: moment.now() Or maxDate: Date.now()
and get the following error: console-breadcrumbs.js:33 jQuery.Deferred exception: this.config.maxDate.clone is not a function TypeError: this.config.maxDate.clone is not a function
vendor.js:89 Uncaught TypeError: this.config.maxDate.clone is not a function at e.reDrawCells (vendor.js:89) at e.drawUserInterface (vendor.js:89) at e.init (vendor.js:89) at HTMLInputElement.<anonymous> (vendor.js:89) at Function.each (vendor.js:1) at w.fn.init.each (vendor.js:1) at w.fn.init.v.fn.calentim (vendor.js:89) at HTMLDocument.<anonymous> (video_form.js:18)
Hello, sorry I was on vacation and I couldn’t respond. There might be something wrong with javascript dates when converting to moment objects, I’ll check that. You can use `maxDate: moment(),` to set the max date btw.
Check the last update (v.1.3.4)
I want to open calentim calendar with hours and minutes set to 23:59 but I haven0t found how to do that. Could you please help me?
Hello, you can do it like this:
startDate: moment().set({hour:23, minute:59}),
endDate: moment().set({hour:23, minute:59})
Hi, I need to select only one day with time range. Example: 28.8.2019 13:00 – 14:00 Is this possible? Thanks Lipovsky
Hi, check the week selection mode in the examples. You can modify it to select one day.
Could it be that touch gesture not supported on ipad air 2?
I have tested with Safari and Google Chrome but this move the complete calendar up and down
give it a option to change the the viewport to display mobile select on ipad?
Up and down swiping is not supported only left and right to switch months if that’s what you’re asking. And in the init method you can set instance.globals.isMobile to true when the browser user agent belongs to an iPad.
Left and right swipe not working on my ipad air 2
I have add instance.globals.isMobile = true; and log is as true but with my ipad air 2 but the calendar view will not open on click
I don’t have an ipad so I couldn’t test it on Safari. Can you debug the code block on line 1940 to see if the hammerjs/jQuery mobile events are working correctly?
When i change “ip(hone|od)” to “ip(hone|od|ad)” for ipad in your checkMobile function then works fine for me. This show the mobile view and works correctly to swipe left/ right in the calendar and up/down in the time.
The checkMobile function from 01.08.2014 is probably old
Hi, yes thanks for pointing that out. I will update the checkMobile function in the next version.
v1.3.1 added keyboard support for time pickers
How can I activate this feature? I did not find anything on this page: http://rettica.com/calentim/docs/readme.html#configurationThanks in advance.
Set enableKeyboard to true and try switching with tab key.
So it is only possible to change the time with the arrow keys (up and down)? Is it possible to enter the number directly? I would very much like this to be possible.
Sorry it’s not possible. Only up and down works right now. Maybe in the future.
Ok thank you, I would be very happy if this is integrated in the near future 
I have another question
plan you in the next time to add a function for select multple dates?
is the last function which i miss to perfectly use your picker 
i use the function to add multiple events at the same time
It’s not planned for calentim but I might think adding it to caleran because of the time pickers. Multiple dates are OK but multiple times seem hard.
No not multiple times only one time (19:00:00 – 21:30:00) on multiple dates (20.08.2019, 21.08.2019, 27.08.2019, 27.08.2019) to add the same event on more then one date.
https://ibb.co/486GST1This feature would force the plugin to switch into “only date picking” mode, which is the main feature of caleran. I still think this would fit into caleran instead of calentim.
okay i will follow your caleran and calentim when this feature available will i buy this again 
How do we enable (see) this new feature?
“added hotel style booking feature for ranges”
Hello, ı forgot to add it into the documentation. But here’s an example to how to use it:
http://rettica.com/calentim/docs/single-test-10.htmlAnd here’s another advanced one:
http://rettica.com/calentim/docs/single-test-11.htmlThanks bro!
But there’s a bug I fixed but not pushed yet in the hotel booking, but you can safely use it, you won’t need to change anything when the new version is released.
What exactly is the difference when using isHotelBooking ?
The disabled ranges’ start and end date becomes half selectable. Like a day is someone’s check-out date while someone’s check-in date.
Ok, understood. On the disabled var in the example, I see ‘2019-08-01‘ What is the trailing :21 represent?
Which one? I couldn’t spot it.
Oh, the array values, I don’t remember it now, it was some example code from one of my users which he/she used to define the disabled days. Maybe it was the days after that day which the range continued and I modified it to suit my needs.It’s keys are used in the disableDays function only. Nothing significant for the example.
hey
give it a option to input the next available date as default? i use the minDate and maxDate option
now = 16.08.2019
the next available selected date is 19.08.2019 but the input fill 17.08.2019 as default
thx for help
Hello kveldscholten, can you prepare me a demo? I couldn’t reproduce it. Maybe it’s something related to my last commits to the plugin, it may be fixed.
Can you add this block to your initializer:
oninit: function(instance){
var currentDate = instance.config.startDate.clone();
while(instance.isDisabled(currentDate) == true) currentDate.add(1, "days");
instance.setStart(currentDate);
instance.validateDates();
},
oh yes
this works.
thx
You’re welcome 
sry one problem have it with this code. Now date is 20.08.2019 16:30 but your code set always 20.08.2019 12:00
console.log(currentDate) say 20.08.2019 16:30 but instance.setStart(currentDate) set always 20.08.2019 12:00
Modify the time of the moment instance as you wish when setting the current date.
while(instance.isDisabled(currentDate) == true) currentDate.add(1, "days");
when i make
console.log(currentDate.add(1, "day"));
before and after while than after loses the given time.
There was a bug in isDisabled method, I fixed it and will release shortly. Thanks for pointing that out.
Thx for Update
Did it fix the issue of yours?
yes 
oninit: function (instance) {
var currentDate = instance.config.startDate.clone();
while (instance.isDisabled(currentDate) === true) currentDate.add(1, "days");
instance.setStart(currentDate);
instance.validateDates();
}
to
oninit: function(instance){
var currentDate = instance.config.startDate.clone();
while (instance.isDisabled(currentDate) === true) {
currentDate.add(1, "days");
instance.setStart(currentDate);
instance.validateDates();
}
}
but when i click in the input field the default date is empty (not selected) instead the first available date
edit: oh okay all saturdays can’t selected
Is it working? Do you expect something from me?
Can you specify the format parameter? as “DD.MM.YYYY HH:mm”? The script may not parse the date you’ve given with the “L LT” format.
On my local it works by the way. Maybe it’s the computer’s regional settings which defaults to the format I’ve written above.
Can you contact me from my profile contact box?
I’ve found your problem. The time you’ve given (02:51) isn’t valid in the limits you’ve defined for the days (07:00 – 23:45). So the input is cleared.
When I change the parameter value to false, then the plugin working correctly.
Hello, in the image you’ve sent me seems like a CSS issue or something. It can’t be related to hideOutOfRange option as I checked the source code. If you can prepare a live demo, I can see the problem clearly.
Sorry, I am wrong. Problem occure when I set rangeOrientation: “vertical” parameter.
can you try this css:
.calentim-input-vertical-range .calentim-left {
flex: 1;
}
and also
.calentim-input-vertical-range .calentim-range {
flex: 0 1 auto;
}
This css fix help, but the text in the ranges is not correct:
.calentim-input-vertical-range .calentim-left { flex: 1 !important; }
https://ibb.co/b5KTyjMThis is not working: .calentim-input-vertical-range .calentim-range { flex: 0 1 auto; }
Maybe you need to add a line-height: normal to the calentim range style above. I don’t know what’s causing that.
This solved the problem on IE11 and working with Chrome and Edge too:
.calentim-range { line-height: 0; padding: 15px 0; }
I would prefer line height set to 15px and adjust the padding relative to that because 0 may not display properly on some. I remember that intan into problems with line height set to 0.
Can you try the last version? I added the CSS’es to fix that problem.
Before we purchase this for a client, could you please respond: “they wanted to know if there are any calls made out to the Internet with the paid calendar as this might need to be approved by the Security team. Please advise.”
Do you do any http request calls out to the Internet?
Hello marcioesteves, no, it doesn’t have any calls on the paid version.
Hi, just purchased and works perfect. can you maybe add keyboard navigation support for “jumping” up and down the Minutes and Hoursin the Timepicker ? That would be fantastic, because i am using it for and Webcam Picture archive to jump easy from one picture to the next. thanks a lot + have a nice day
Hi webstream-solutions,
Thanks for buying and using my plugin first, and second, yes thats a good idea, but the arrow keys are moving the calendar days, maybe I can write a tab switch between calendars and time picker parts. I’ll try and let you know.
Hello, I pushed an update, can you test it?
Hi, thank you very much. i will try it asap 
Hello, yes works perfect, Thanks so much.
Another future request could be that in the timepicker it would be nice to be able to direktly tipe the number of hours or minutes inside the timepicker. so in this ways the user can be faster instead of clicking many time there until the desired time is set.
thank you again for the fast respond and help 
sorry !
Hey, I’ve just bought calentim, and it looks very nice.
I have two points. First, the startEmpty parameter do not work, if i set showCalendars to false. If I only want to show the clock and set startEmpty to false, then I got an error.
And my second question is about timezones. Is it possible to work with specific timezones in calentim? That would be very nice!
Hello tagsechs,
Thanks for buying and using my plugin.
1. startEmpty was intended to start with an empty calendar, I didn’t think of using it inside the time pickers, because if I wanted to start with an empty time selection, I would use 12:00 – 12:00 or 00:00 – 00:00 with a starting point. It’s equal to setting startDate and endDate with a predefined hour.I can think of one problem occuring when doing that, the input would be prefilled with that date. If you can give me some details about how the time pickers should act when starting empty, I can try to implement it into the core, or if a configuration doing this externally is possible, I can inform you.
2. try moment timezone plugin, it allows you to set momentjs’s timezone globally. https://momentjs.com/timezone/docs/#/using-timezones/default-timezone/
Hey. Thank’s for the answer.
You’re right. Start empty can be 00:00 or 12:00. My question was more about the input field which is combined with the timepicker. With startEmpty I expected that the input field was empty, not the timepicker itself.
The timezone tip was very helpful, thank you!
Now I have a third question. Do you plan to erase jQuery from this lib? 
Yes, I have that plan but I guess not soon. But that’ll be a good challenge for me. Maybe I should do it sooner. I’ll check which jQuery features I’m using and try to replace one by one.
Would be nice.
While you’re at it… maybe a change to https://moment.github.io/luxon/ makes sense.
Apart from everything, thank you very much for this lib! With that you saved me a lot of trouble.
Thank you for using it 
Yes I’ve considered switching to Luxon, but it won’t contain localization, DST switches, timezones, and some features that I can’t recall right now. Moment is a full package which I started as the base. Otherwise, I would need to rewrite most of the functionality to DateTime object of javascript. It would be a PIA.
I think PIA is a very big understatement when it comes to DateTime and pure Javascript. 
Maybe it is a few days ago that you looked at luxon. It has timezone, localization and DST support.
https://github.com/moment/luxon/blob/master/docs/zones.md https://github.com/moment/luxon/blob/master/docs/intl.mdBut yea, I think you have more to do than replacing working features with newer cooler implementations.
To be honest, it was a few months before
I suppose replacing jquery to vanilla js and moment with luxon would be a real improvement on file size. Thanks for the tips!
Hello. I would really like to buy your plugin, but I have an important question: is there a method to destroy the plugin on the page? Like the one Select2 has, for example https://select2.org/programmatic-control/methods#destroying-the-select2-control
Hello, yes there’s an `instance.destroy()` feature available.I’ll add an example and let you know.
Thank you so much, I’ll be waiting!
Oh, very cool. I’ll then make a purchase in the upcoming week 
Thanks, if you need anything else, feel free to contact me from my profile contact box.
Hi! We need to block specific 30min intervals for a booking web app. Users will be able to book between 9:00 and 18:00 one 30min interval. After a booking is made we need to disable that 30min interval for future bookings… but not the entire day, just those 30min. Is this possible ? Any suggestions?
Hello bogdandumea, I checked the current code if it is possible, but it doesn’t seem like it. You can read the TimeInsideLimits method in the source and modify it to skip the disabled ones if you can.
if i put the script.js between the <header></header>, it don’t work… when i put je script.js at the bottom, it works, but all the website header disappear…
When i try to replace script.js with calentim.js.. it’s not work at all ?
Can you help me please ?
Thank you very much. Cédric.
Hi Skyll,
Did you read the documentation? You need to include moment.min.js and caleran.min.js to the <head></head>, then you can use $(”#picker-input”).caleran({options}) to initialize the input. Refer to the documentation for the details of options.
Hi, thank you, I send you (in private) the url where it’s integrated… and with moment.min.js and calentim.js (that’s what included in package), it don’t work at all. if i want it work, i must put in in the bottom of the page (under bootstrap and jquery) but if i do… calentim work, but i always loose the page header ?
Send the URL to me from my profile contact form.
already do
Answered.