Skip to content

Commit a31d56d

Browse files
Merges trentrichardson#772 - Fixes using current time as minimum when setting minDateTime=0
1 parent 4edb868 commit a31d56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@
10711071
o[opts] = val;
10721072
}
10731073
else { o = opts; }
1074-
return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
1074+
return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min>=0 ? o.min : $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
10751075
},
10761076
value: function (tp_inst, obj, unit, val) {
10771077
var $t = obj.children('select');

0 commit comments

Comments
 (0)