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

enable force round time when variable step #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

masak1yu
Copy link

@masak1yu masak1yu commented Jul 3, 2018

When forceRoundTime is false in the setting.

  $(function() {
    $('#timepicker').timepicker({
      'timeFormat': 'H:i:s',
      'step': function(i) {
        // enable choice 59min
        if (i % 5 == 4) {
          return 14;
        } else if (i % 5 == 0) {
          return 1;
        } else if (i % 5 >= 1 && i % 5 <= 3) {
          return 15;
        }
      },
    });
    $('#timepicker').timepicker('setTime', new Date());

Then the time setting pull-down becomes the setting from the beginning.

It solved it by modifying the setting of _findRow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant