We're experiencing a problem where whenever someone selects a date
from the calendar, an error is occurring which turns the date field
red.
The error occurs on line 530 of datebox_engine.js, where
if(calendarIfFormat) causes an error, the message being
'calendarIfFormat is not defined'. We are using Firefox 2.0.0.6. Is
this a bug, or is there something wrong that we're doing?
The rails helper looks like this:
<%= calendar_box :alias, :expiryDate,
{ :class => 'form',
:style => 'width:100px',
:value => @alias.expiryDate || 'No expiry',
:field_title => 'Set expiry',
:form_name => "alias_#{rand}",
:button_title => 'Show calendar' },
{ :firstDay => 0,
:range => [Time.now.year, Time.now.year+100],
:step => 1,
:showOthers => true,
}
%>
I've tried adding an :ifFormat parameter to the last hash, but it
doesn't appear to make any difference.
Thanks.