Author: pyaschenko
Date: 2009-01-21 10:05:33 -0500 (Wed, 21 Jan 2009)
New Revision: 12362
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-5837
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
---
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2009-01-21
11:56:04 UTC (rev 12361)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2009-01-21
15:05:33 UTC (rev 12362)
@@ -403,7 +403,9 @@
hh = parseInt(match[h],10); if (isNaN(hh)) return null;
if (a!=undefined)
{
- aa = match[a].toLowerCase();
+ aa = match[a];
+ if (!aa) return null;
+ aa = aa.toLowerCase();
if ((aa!='am' && aa!='pm') || hh<1 || hh>12) return
null;
if (aa=='pm')
{