|
101 | 101 | addSliderAccess: false, |
102 | 102 | sliderAccessArgs: null, |
103 | 103 | controlType: 'slider', |
| 104 | + oneLine: false, |
104 | 105 | defaultValue: null, |
105 | 106 | parse: 'strict' |
106 | 107 | }; |
|
366 | 367 |
|
367 | 368 | // Prevent displaying twice |
368 | 369 | if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) { |
369 | | - var noDisplay = ' style="display:none;"', |
370 | | - html = '<div class="ui-timepicker-div' + (o.isRTL ? ' ui-timepicker-rtl' : '') + '"><dl>' + '<dt class="ui_tpicker_time_label"' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' + |
371 | | - '<dd class="ui_tpicker_time"' + ((o.showTime) ? '' : noDisplay) + '></dd>'; |
| 370 | + var noDisplay = ' ui_tpicker_unit_hide', |
| 371 | + html = '<div class="ui-timepicker-div' + (o.isRTL ? ' ui-timepicker-rtl' : '') + (o.oneLine && o.controlType === 'select' ? ' ui-timepicker-oneLine' : '') + '"><dl>' + '<dt class="ui_tpicker_time_label"' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' + |
| 372 | + '<dd class="ui_tpicker_time '+ ((o.showTime) ? '' : noDisplay) + '"></dd>'; |
372 | 373 |
|
373 | 374 | // Create the markup |
374 | 375 | for (i = 0, l = this.units.length; i < l; i++) { |
|
382 | 383 | max[litem] = parseInt((o[litem + 'Max'] - ((o[litem + 'Max'] - o[litem + 'Min']) % o['step' + uitem])), 10); |
383 | 384 | gridSize[litem] = 0; |
384 | 385 |
|
385 | | - html += '<dt class="ui_tpicker_' + litem + '_label"' + (show ? '' : noDisplay) + '>' + o[litem + 'Text'] + '</dt>' + |
386 | | - '<dd class="ui_tpicker_' + litem + '"><div class="ui_tpicker_' + litem + '_slider"' + (show ? '' : noDisplay) + '></div>'; |
| 386 | + html += '<dt class="ui_tpicker_' + litem + '_label' + (show ? '' : noDisplay) + '">' + o[litem + 'Text'] + '</dt>' + |
| 387 | + '<dd class="ui_tpicker_' + litem + (show ? '' : noDisplay) + '"><div class="ui_tpicker_' + litem + '_slider' + (show ? '' : noDisplay) + '"></div>'; |
387 | 388 |
|
388 | 389 | if (show && o[litem + 'Grid'] > 0) { |
389 | 390 | html += '<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>'; |
|
409 | 410 |
|
410 | 411 | // Timezone |
411 | 412 | var showTz = o.showTimezone !== null ? o.showTimezone : this.support.timezone; |
412 | | - html += '<dt class="ui_tpicker_timezone_label"' + (showTz ? '' : noDisplay) + '>' + o.timezoneText + '</dt>'; |
413 | | - html += '<dd class="ui_tpicker_timezone" ' + (showTz ? '' : noDisplay) + '></dd>'; |
| 413 | + html += '<dt class="ui_tpicker_timezone_label' + (showTz ? '' : noDisplay) + '">' + o.timezoneText + '</dt>'; |
| 414 | + html += '<dd class="ui_tpicker_timezone' + (showTz ? '' : noDisplay) + '"></dd>'; |
414 | 415 |
|
415 | 416 | // Create the elements from string |
416 | 417 | html += '</dl></div>'; |
|
0 commit comments