@@ -265,9 +265,9 @@ $.extend(Timepicker.prototype, {
265265 // Added by Peter Medeiros:
266266 // - Figure out what the hour/minute/second max should be based on the step values.
267267 // - 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 ) ,
271271 dp_id = this . inst . id . toString ( ) . replace ( / ( [ ^ A - Z a - z 0 - 9 _ ] ) / g, '' ) ;
272272
273273 // Prevent displaying twice
@@ -285,7 +285,7 @@ $.extend(Timepicker.prototype, {
285285 minuteGridSize = 0 ,
286286 secondGridSize = 0 ,
287287 size ;
288-
288+
289289 if ( o . showHour && o . hourGrid > 0 ) {
290290 html += '<dd class="ui_tpicker_hour">' +
291291 '<div id="ui_tpicker_hour_' + dp_id + '"' + ( ( o . showHour ) ? '' : noDisplay ) + '></div>' +
@@ -586,9 +586,9 @@ $.extend(Timepicker.prototype, {
586586 }
587587
588588 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 ) ;
592592
593593 if ( this . hour_slider )
594594 this . hour_slider . slider ( "option" , { min : this . _defaults . hourMin , max : hourMax } ) . slider ( 'value' , this . hour ) ;
0 commit comments