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

decrementMinute - added round to next step for when initial value is not a multiple of the step. #324

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Commits on Jan 8, 2016

  1. Update bootstrap-timepicker.js

    Updated decrementMinute to behave similar to incrementMinute such that decrement will first round down if current value is not a multiple of this.minuteStep.
    
    **incrementMinute will apply the increment and then remove the remaining so that the new value is the next-step up (this.minute==2 with increment applied will result in "15" with a this.minuteStep==15).
    
    Previous implementation would not round decrement (this.minute==2 and this.minuteStep==15 will result in the minute becoming "47" instead of "0".
    smistir committed Jan 8, 2016
    Configuration menu
    Copy the full SHA
    f814af6 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2016

  1. Update TimepickerSpec.js

    Added UnitTest test-cases to test when the initial value is not a Multiple of the step for incrementMinute and decrementMinute
    smistir committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    8aa2729 View commit details
    Browse the repository at this point in the history
  2. Update TimepickerSpec.js

    fixed formatting issues within the file
    smistir committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    111e1ee View commit details
    Browse the repository at this point in the history