ericjgagnon / wickedpicker

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

Fixed wickedpicker not displaying 'now' value when initialised #14

Closed jiaming10 closed 8 years ago

jiaming10 commented 8 years ago

During initialisation, wickedpicker does not set text to the element. So, the 'now' option value will not be displayed, until user clicks the element.

For example,

    var options = {
        now: "12:35",
        twentyFour: false
    };
    $('.timepicker').wickedpicker(options);

During the first load, wickedpicker will not show '12:35 PM'. But when user clicks the element, it will now show '12:35 PM'.

ericjgagnon commented 8 years ago

Makes sense. Thanks for your contribution.