Minor whitespace fixes
This commit is contained in:
parent
689ba11c35
commit
4d6402ad97
8
jquery-ui-timepicker-addon.js
vendored
8
jquery-ui-timepicker-addon.js
vendored
|
@ -350,11 +350,9 @@ $.extend(Timepicker.prototype, {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Add grid functionality
|
// Add grid functionality
|
||||||
if (o.showHour && o.hourGrid > 0) {
|
if (o.showHour && o.hourGrid > 0) {
|
||||||
size = 100 * hourGridSize * o.hourGrid / (hourMax - o.hourMin);
|
size = 100 * hourGridSize * o.hourGrid / (hourMax - o.hourMin);
|
||||||
|
|
||||||
|
|
||||||
$tp.find(".ui_tpicker_hour table").css({
|
$tp.find(".ui_tpicker_hour table").css({
|
||||||
width: size + "%",
|
width: size + "%",
|
||||||
|
@ -382,7 +380,6 @@ $.extend(Timepicker.prototype, {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (o.showMinute && o.minuteGrid > 0) {
|
if (o.showMinute && o.minuteGrid > 0) {
|
||||||
size = 100 * minuteGridSize * o.minuteGrid / (minMax - o.minuteMin);
|
size = 100 * minuteGridSize * o.minuteGrid / (minMax - o.minuteMin);
|
||||||
|
@ -545,8 +542,7 @@ $.fn.extend({
|
||||||
|
|
||||||
//########################################################################
|
//########################################################################
|
||||||
// extend timepicker to datepicker
|
// extend timepicker to datepicker
|
||||||
//########################################################################
|
//########################################################################
|
||||||
|
|
||||||
datetimepicker: function(o) {
|
datetimepicker: function(o) {
|
||||||
o = o || {};
|
o = o || {};
|
||||||
var $input = this,
|
var $input = this,
|
||||||
|
@ -679,7 +675,7 @@ $.datepicker._setTime = function(inst, date) {
|
||||||
second = date ? date.getSeconds() : defaults.second;
|
second = date ? date.getSeconds() : defaults.second;
|
||||||
|
|
||||||
//check if within min/max times..
|
//check if within min/max times..
|
||||||
if ((hour < defaults.hourMin || hour > defaults.hourMax) || (minute < defaults.minuteMin || minute > defaults.minuteMax) || (second < defaults.secondMin || second > defaults.secondMax)) {
|
if ((hour < defaults.hourMin || hour > defaults.hourMax) || (minute < defaults.minuteMin || minute > defaults.minuteMax) || (second < defaults.secondMin || second > defaults.secondMax)) {
|
||||||
hour = defaults.hourMin;
|
hour = defaults.hourMin;
|
||||||
minute = defaults.minuteMin;
|
minute = defaults.minuteMin;
|
||||||
second = defaults.secondMin;
|
second = defaults.secondMin;
|
||||||
|
|
Loading…
Reference in a new issue