Skip to content

add class it will beautiful #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
astrocean opened this issue Aug 28, 2014 · 1 comment
Closed

add class it will beautiful #755

astrocean opened this issue Aug 28, 2014 · 1 comment

Comments

@astrocean
Copy link

395 zj ay ohtlb s3y2_ne

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; },

@trentrichardson
Copy link
Owner

Thanks for the suggestion, looks great! This is now in the dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants