From 4db3c854a313d77b3577e284519b6f20c85ba98e Mon Sep 17 00:00:00 2001 From: rayfranco Date: Mon, 21 Mar 2011 12:24:55 +0100 Subject: [PATCH] Make the default value effective (Issue 102 - Comment 857759) --- jquery-ui-timepicker-addon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 85c795c..a10fcd1 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -343,7 +343,7 @@ $.extend(Timepicker.prototype, { this.hour_slider = $tp.find('#ui_tpicker_hour_'+ dp_id).slider({ orientation: "horizontal", - value: this.hour, + value: o.hour, min: o.hourMin, max: hourMax, step: o.stepHour, @@ -357,7 +357,7 @@ $.extend(Timepicker.prototype, { // - Pass in Event and UI instance into slide function this.minute_slider = $tp.find('#ui_tpicker_minute_'+ dp_id).slider({ orientation: "horizontal", - value: this.minute, + value: o.minute, min: o.minuteMin, max: minMax, step: o.stepMinute, @@ -370,7 +370,7 @@ $.extend(Timepicker.prototype, { this.second_slider = $tp.find('#ui_tpicker_second_'+ dp_id).slider({ orientation: "horizontal", - value: this.second, + value: o.second, min: o.secondMin, max: secMax, step: o.stepSecond,