ericjgagnon / wickedpicker

A simple jQuery timepicker
http://ericjgagnon.github.io/wickedpicker/
MIT License
93 stars 78 forks source link

Z-INDEX missing and avoid default time #73

Closed jaimestuardo closed 6 years ago

jaimestuardo commented 6 years ago

Hello,

I have placed this good control inside a jqGrid but the control was not shown. To solve it, I have placed:

.wickedpicker { z-index: 9999; }

Second problem I have found is that it seems it cannot be configured so that no default time is used.

In fact, if INPUT has some time already written inside, and then I attach the wickedpicker to it, that time is replaced by the current time of the day. This should be corrected. It is good if INPUT is blank, but not when it already has a value.

Regards Jaime

jaimestuardo commented 6 years ago

For the second problem, I have just added this code at line 79:

var currentTime = $(element).val().replace(/ /g, ''); if (currentTime != '') this.options.now = currentTime;

"replace" call was only just in case the time contains some space.