Timepicker pick option in dropdown

386 views Asked by At

I have a problem with timepicker V4. In dropdown there is a de- and increment option and pick option where you can pick an hour or a minute. In my case when I pick minutes the option is empty.

enter image description here enter image description here

Why aren't there any minutes to pick? Disabling pick option is also a possibility but I haven't found in the documentation or in google results any settings for this. Console also doesn't return any errors.

I know there is a newer version out there but currently I cannot update. Have to find a solution for this.

This is my code

<input  type='text' name='somename' class='form-control' />"
   <span class='input-group-addon' >"
   <span class='glyphicon glyphicon-calendar'></span>"
   </span>

Initialization should not be a problem. The hour picker works fine.

enter image description here

UPDATE

This is NOT a solution. It is just a workaround but it works for us. If you use debug:true you can inspect a popup. You can then see the classes or ids and with this you can disable click on hours and/or minutes picker.

$('yourPickerIdOrClass').click(function () {
                $(this).find(".timepicker .timepicker-hour").removeAttr("data-action").css("cursor", "default");
                $(this).find(".timepicker .timepicker-minute").removeAttr("data-action").css("cursor", "default");
            }); 
0

There are 0 answers