Closed pixeldoris closed 8 years ago
The end date should roll over automatically, and the start time should not change. Can you post a link that demonstrates the problem?
I can't post the actual link since it's "the real deal" but maybe I can make a fiddle (never done it but I'll try) and if the fiddle works I might just have some code that's colliding with datepair. But I'll try to make a fiddle now..
I can't get the fiddle to even work with the datepicker or timepicker.. but I did go the extra mile, so my application does work, but extra code is never nice.. :/ to bad I can't demonstrate my problem.
Try this as a starting point for the fiddle http://jsfiddle.net/jonthornton/dx8xkvnb/
When I alter that one so that it has the same code as the website I'm working on it's working just fine.. I have no idea what's causing this bug on my page, but atleast now I know it's not the datepair..
I have a videoclip when I'm demostrating, can I send it somewhere? so that you'll see?
Isolating the problem in a jsfiddle is the only way I can help. It's impossible to debug without code.
it's so weird suddenly it works...
I think I know when it doesn't work.. it's when I have a date that's already passed, since I don't allow to pick those dates it can't choose that... now it all makes sense.
I have this problem with an application. I need to be able to alter the time-span of an already existing work shift in a certain event and the date needs to be altered automatically depending on the time.
I have this form which is automatically filled in with data from a database.
The problem is that when I set the $endtime input to, for example, 03:00 after midnight. The $starttime is set to 03.00 too instead of the $enddate changing to '2016-05-19'.
Is this fixable or do I need to go the extra mile and code something like:
and skip the date inputs etc....