Skip to content

Instantly share code, notes, and snippets.

@semperos
Created January 2, 2013 19:41
Show Gist options
  • Select an option

  • Save semperos/4437272 to your computer and use it in GitHub Desktop.

Select an option

Save semperos/4437272 to your computer and use it in GitHub Desktop.
jQuery Timepicker defensive tweak
tp_inst.amNames = $.map(tp_inst._defaults.amNames, function(val) { if ($.type(val) === "string") { return val.toUpperCase(); } });
tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function(val) { if ($.type(val) === "string") { return val.toUpperCase(); } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment