From 8cbc6dc869a8e7fbe6040ae0cd0bbd18a6888c83 Mon Sep 17 00:00:00 2001 From: Trent Date: Thu, 19 May 2011 19:44:39 -0400 Subject: [PATCH] Added ThomasLangston pull request from master for different case am/pm --- jquery-ui-timepicker-addon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 3e52042..4efe487 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -660,6 +660,8 @@ $.extend(Timepicker.prototype, { .replace(/ss/g, ((time.second < 10) ? '0' : '') + time.second) .replace(/s/g, time.second) .replace(/TT/g, time.ampm.toUpperCase()) + .replace(/Tt/g, time.ampm.toUpperCase()) + .replace(/tT/g, time.ampm.toLowerCase()) .replace(/tt/g, time.ampm.toLowerCase()) .replace(/T/g, time.ampm.charAt(0).toUpperCase()) .replace(/t/g, time.ampm.charAt(0).toLowerCase()) @@ -810,6 +812,8 @@ $.datepicker._doKeyPress = function(event) { datetimeChars = tp_inst._defaults.timeFormat.toString() .replace(/[hms]/g, '') .replace(/TT/g, ampm ? 'APM' : '') + .replace(/Tt/g, ampm ? 'AaPpMm' : '') + .replace(/tT/g, ampm ? 'AaPpMm' : '') .replace(/T/g, ampm ? 'AP' : '') .replace(/tt/g, ampm ? 'apm' : '') .replace(/t/g, ampm ? 'ap' : '') +