diff --git a/jquery-ui-timepicker-addon.css b/jquery-ui-timepicker-addon.css
index 71e4c46..e0d03c2 100644
--- a/jquery-ui-timepicker-addon.css
+++ b/jquery-ui-timepicker-addon.css
@@ -1,6 +1,6 @@
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
-.ui-timepicker-div dl dt { height: 25px; }
-.ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; }
+.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
+.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 3f27db1..9bdeea7 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -362,13 +362,17 @@ $.extend(Timepicker.prototype, {
minuteGridSize = 0,
secondGridSize = 0,
millisecGridSize = 0,
+ sliderChange = function(event, ui) {
+ $(this).slider( "option", "value", ui.value);
+ tp_inst._onTimeChange();
+ },
size;
// Hours
+ html += '
';
if (o.showHour && o.hourGrid > 0) {
- html += '' +
- '' +
- '';
+ html += '';
for (var h = o.hourMin; h <= hourMax; h += parseInt(o.hourGrid,10)) {
hourGridSize++;
@@ -382,70 +386,63 @@ $.extend(Timepicker.prototype, {
html += '' + tmph + ' | ';
}
- html += '
' +
- '';
- } else html += '';
-
- html += '' + o.minuteText + '';
+ html += '
';
+ }
+ html += '';
// Minutes
+ html += '' + o.minuteText + ''+
+ '';
+
if (o.showMinute && o.minuteGrid > 0) {
- html += '' +
- '' +
- '';
+ html += '';
for (var m = o.minuteMin; m <= minMax; m += parseInt(o.minuteGrid,10)) {
minuteGridSize++;
html += '' + ((m < 10) ? '0' : '') + m + ' | ';
}
- html += '
' +
- '';
- } else html += '';
+ html += '
';
+ }
+ html += '';
// Seconds
html += '' + o.secondText + '';
+ ((o.showSecond) ? '' : noDisplay) + '>' + o.secondText + ''+
+ '';
if (o.showSecond && o.secondGrid > 0) {
- html += '' +
- '' +
- '';
+ html += '';
for (var s = o.secondMin; s <= secMax; s += parseInt(o.secondGrid,10)) {
secondGridSize++;
html += '' + ((s < 10) ? '0' : '') + s + ' | ';
}
- html += '
' +
- '';
- } else html += '';
+ html += '
';
+ }
+ html += '';
// Milliseconds
html += '' + o.millisecText + '';
+ ((o.showMillisec) ? '' : noDisplay) + '>' + o.millisecText + ''+
+ '';
if (o.showMillisec && o.millisecGrid > 0) {
- html += '' +
- '' +
- '';
+ html += '';
for (var l = o.millisecMin; l <= millisecMax; l += parseInt(o.millisecGrid,10)) {
millisecGridSize++;
html += '' + ((l < 10) ? '0' : '') + s + ' | ';
}
- html += '
' +
- '';
- } else html += '';
+ html += '
';
+ }
+ html += '';
// Timezone
html += '