jeffreyhi1 / jquery-timepicker

Automatically exported from code.google.com/p/jquery-timepicker
0 stars 0 forks source link

Exception thrown on init and no starting value #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I included the timepicker on my page, an exception was thrown. I 
tracked the issue down to
// hide original input and append new replacement inputs
$(this).attr('type', 'hidden').after(output);

I replaced that with 
$(this).css('display', 'none').after(output); 
and the issue went away.

I also noticed the input's value was not filled in until the user picked a 
time. Since there is a default time on init, a user would expect that time 
to be the current value of the input, so I added code to make that happen. 
Attached are my changes if you are interested in them

Original issue reported on code.google.com by jasonala...@gmail.com on 10 Nov 2009 at 3:44

Attachments: