trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

MinTime and MaxTime can be set only the first time #930

Open thanhnguyentps opened 6 years ago

thanhnguyentps commented 6 years ago

Hi guys,

I have a datepicker and timepicker. When I set the datepicker is today, the timepicker should be greater than current time (It's worked right now). But when I change the datetime to the future and I set the minTime again, it's not work (it's still the last minTime). I used this code to set it again

$('#start_time').timepicker('option', 'minTime',

Could you please help to check it?

Thanks, Thanh

t0mmic commented 6 years ago

The truth is that you can change the value more than once, but only at higher value. edit: I resolve it. First by deleting the value and when I change it, then loading it again.

jagad89 commented 6 years ago

First by deleting the value and when I change it, then loading it again.

@t0mmic Does it mean you set date to empty then tried ?

t0mmic commented 6 years ago

Hi, I think, that when you retrieve values, first set it empty and after that the correct.

M.

---------- Původní e-mail ---------- Od: Bhavin Jagad notifications@github.com Komu: trentrichardson/jQuery-Timepicker-Addon <jQuery-Timepicker-Addon@ noreply.github.com> Datum: 28. 3. 2018 7:42:48 Předmět: Re: [trentrichardson/jQuery-Timepicker-Addon] MinTime and MaxTime can be set only the first time (#930) "" First by deleting the value and when I change it, then loading it again. " @t0mmic(https://github.com/t0mmic) Does it mean you set date to empty then tried ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/930#issuecomment-376768227) , or mute the thread (https://github.com/notifications/unsubscribe-auth/AgMsudDmVCezgZGLxWAeKMzUnSOMWyQFks5tiyLTgaJpZM4PIPs_) .

"

FeIix commented 2 years ago

Hi, I think, that when you retrieve values, first set it empty and after that the correct. M.

Hi, could you please show an example of how you did it ? I tried to empty the value but still, the minTime never goes down.

t0mmic commented 2 years ago

Hi, this is my old project that he didn't end up using.  If anyone wants to use it, they have to finish it. MichalDne 16. 9. 2021 11:59 napsal uživatel FLX @.***>:

Hi, I think, that when you retrieve values, first set it empty and after that the correct. M.

Hi, could you please show an example of how you did it ? I tried to empty the value but still, the minTime never goes down.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.