Merge pull request #191 from TigerDX/dev

Reset styles for grid label tables when global table styles are in use
This commit is contained in:
Trent Richardson 2011-07-01 08:27:52 -07:00
commit b53bf326f4
2 changed files with 3 additions and 2 deletions

View file

@ -3,3 +3,4 @@
.ui-timepicker-div dl dt { height: 25px; }
.ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

View file

@ -289,7 +289,7 @@ $.extend(Timepicker.prototype, {
if (o.showHour && o.hourGrid > 0) {
html += '<dd class="ui_tpicker_hour">' +
'<div id="ui_tpicker_hour_' + dp_id + '"' + ((o.showHour) ? '' : noDisplay) + '></div>' +
'<div style="padding-left: 1px"><table><tr>';
'<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>';
for (var h = o.hourMin; h <= hourMax; h += o.hourGrid) {
hourGridSize++;
@ -315,7 +315,7 @@ $.extend(Timepicker.prototype, {
html += '<dd class="ui_tpicker_minute ui_tpicker_minute_' + o.minuteGrid + '">' +
'<div id="ui_tpicker_minute_' + dp_id + '"' +
((o.showMinute) ? '' : noDisplay) + '></div>' +
'<div style="padding-left: 1px"><table><tr>';
'<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>';
for (var m = o.minuteMin; m <= minMax; m += o.minuteGrid) {
minuteGridSize++;