Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2-digit hour #235

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

2-digit hour #235

wants to merge 1 commit into from

Commits on Jul 9, 2014

  1. Update bootstrap-timepicker.js

    I tried to use bootstrap-timepicker  with Masked Input Plugin but I had no success because the hour should be return always wit two digits, otherwise cannot be validet by mask input, so the value it is canceled. All the time when the user clicks the input, the value it is reset to empty and has a strange behaviour. I did not find any settings in timepicker to force to return always 2 digits for the hour. So I decided to make changes in the code. 
    I this commit are the changes with a new option "hourTwoDigits" which is default set to false, to not affect the behaviour for those who already imlpemented timepicker.
     $('#timepicker5').timepicker({
            hourTwoDigits:true
    });
    narcisbodea committed Jul 9, 2014
    Configuration menu
    Copy the full SHA
    cdfa5ad View commit details
    Browse the repository at this point in the history