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

options showMicrosec. showMillisec, showMicrosec and showTimezone do not work #897

Open jkyon opened 7 years ago

jkyon commented 7 years ago

Hello

I´m using last version of Timepicker Addon (v1.6.3), and I want to hide some controls from DateTimePicker such as milliseconds, seconds, microseconds and timezone. However, I cannot hide it even I already set those option as false.

my code is this,

$(document).ready(function() {{ $('#TimeFrameFrom').datetimepicker({{showHour:false, showMillisec:false, showSecond:false, timezone:false, showMicrosec:false ,timezoneList:null, showButtonPanel:true, showTime:false, showTimepicker:true }}); }});

I´m not sure if something else is required to get what I looking for.

thank you in advance!

jkyon commented 7 years ago

In addition, I'm using jquery-3.1.0 and jquery-ui-1.12.0, Is there an issue with those versions and Timepicker v1.6.3?

Thank you in advance

fpauser commented 7 years ago

Same here, jquery-3.1.1 & jquery-ui 1.12.1.

trentrichardson commented 7 years ago

These are detected primarily from the tokens used in the timeFormat. If you don't specify them in your time format they will not show.

On Oct 8, 2016 5:05 PM, "Falk Pauser" notifications@github.com wrote:

Same here, jquery-3.1.1 & jquery-ui 1.12.1.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/897#issuecomment-252448371, or mute the thread https://github.com/notifications/unsubscribe-auth/AATHOMq5gauAWDvDACwHS6Vq5yk-jaAjks5qyAWCgaJpZM4JsJYT .

fpauser commented 7 years ago

Ahh, nevermind: I forgot to add the jquery-timepicker-addon.css, which are needed for hiding things...

@jkyon: Sure that you added the styles?

sutroon commented 7 years ago

@fpauser thank you.

LTUcoin commented 6 years ago

@fpauser thanks !!