Closed astrocean closed 10 years ago
if you add class into slect;it will be beautiful
// select methods select: { create: function (tp_inst, obj, unit, val, min, max, step) { var sel = '', format = tp_inst._defaults.pickerTimeFormat || tp_inst._defaults.timeFormat;
for (var i = min; i <= max; i += step) { sel += '<option value="' + i + '"' + (i === val ? ' selected' : '') + '>'; if (unit === 'hour') { sel += $.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig, '')), {hour: i}, tp_inst._defaults); } else if (unit === 'millisec' || unit === 'microsec' || i >= 10) { sel += i; } else {sel += '0' + i.toString(); } sel += '</option>'; } sel += '</select>'; obj.children('select').remove(); $(sel).appendTo(obj).change(function (e) { tp_inst._onTimeChange(); tp_inst._onSelectHandler(); }); return obj; },
Thanks for the suggestion, looks great! This is now in the dev branch.
if you add class into slect;it will be beautiful
// select methods select: { create: function (tp_inst, obj, unit, val, min, max, step) { var sel = '