@@ -265,9 +265,9 @@ $.extend(Timepicker.prototype, {
265
265
// Added by Peter Medeiros:
266
266
// - Figure out what the hour/minute/second max should be based on the step values.
267
267
// - Example: if stepMinute is 15, then minMax is 45.
268
- hourMax = ( o . hourMax - ( o . hourMax % o . stepHour ) ) . toFixed ( 0 ) ,
269
- minMax = ( o . minuteMax - ( o . minuteMax % o . stepMinute ) ) . toFixed ( 0 ) ,
270
- secMax = ( o . secondMax - ( o . secondMax % o . stepSecond ) ) . toFixed ( 0 ) ,
268
+ hourMax = ( o . hourMax - ( ( o . hourMax - o . hourMin ) % o . stepHour ) ) . toFixed ( 0 ) ,
269
+ minMax = ( o . minuteMax - ( ( o . minuteMax - o . minuteMin ) % o . stepMinute ) ) . toFixed ( 0 ) ,
270
+ secMax = ( o . secondMax - ( ( o . secondMax - o . secondMin ) % o . stepSecond ) ) . toFixed ( 0 ) ,
271
271
dp_id = this . inst . id . toString ( ) . replace ( / ( [ ^ A - Z a - z 0 - 9 _ ] ) / g, '' ) ;
272
272
273
273
// Prevent displaying twice
@@ -285,7 +285,7 @@ $.extend(Timepicker.prototype, {
285
285
minuteGridSize = 0 ,
286
286
secondGridSize = 0 ,
287
287
size ;
288
-
288
+
289
289
if ( o . showHour && o . hourGrid > 0 ) {
290
290
html += '<dd class="ui_tpicker_hour">' +
291
291
'<div id="ui_tpicker_hour_' + dp_id + '"' + ( ( o . showHour ) ? '' : noDisplay ) + '></div>' +
@@ -586,9 +586,9 @@ $.extend(Timepicker.prototype, {
586
586
}
587
587
588
588
if ( adjustSliders !== undefined && adjustSliders === true ) {
589
- var hourMax = ( this . _defaults . hourMax - ( this . _defaults . hourMax % this . _defaults . stepHour ) ) . toFixed ( 0 ) ,
590
- minMax = ( this . _defaults . minuteMax - ( this . _defaults . minuteMax % this . _defaults . stepMinute ) ) . toFixed ( 0 ) ,
591
- secMax = ( this . _defaults . secondMax - ( this . _defaults . secondMax % this . _defaults . stepSecond ) ) . toFixed ( 0 ) ;
589
+ var hourMax = ( this . _defaults . hourMax - ( ( this . _defaults . hourMax - this . _defaults . hourMin ) % this . _defaults . stepHour ) ) . toFixed ( 0 ) ,
590
+ minMax = ( this . _defaults . minuteMax - ( ( this . _defaults . minuteMax - this . _defaults . minuteMin ) % this . _defaults . stepMinute ) ) . toFixed ( 0 ) ,
591
+ secMax = ( this . _defaults . secondMax - ( ( this . _defaults . secondMax - this . _defaults . secondMin ) % this . _defaults . stepSecond ) ) . toFixed ( 0 ) ;
592
592
593
593
if ( this . hour_slider )
594
594
this . hour_slider . slider ( "option" , { min : this . _defaults . hourMin , max : hourMax } ) . slider ( 'value' , this . hour ) ;
0 commit comments