Skip to content

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.

@masak1yu masak1yu closed this Oct 9, 2025
@masak1yu masak1yu deleted the feature/enable_force_round_time_when_variable_step branch October 9, 2025 05:48
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