ifFormat undefined in datebox_engine.js

4 views
Skip to first unread message

luke

unread,
Sep 5, 2007, 10:19:06 PM9/5/07
to Ruby on Rails: DHTML Calendar
Hi,

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.

Ed Moss

unread,
Sep 20, 2007, 3:35:39 PM9/20/07
to Ruby on Rails: DHTML Calendar
Are you using trunk?

luke

unread,
Sep 20, 2007, 5:49:29 PM9/20/07
to Ruby on Rails: DHTML Calendar
Yes.
Reply all
Reply to author
Forward
0 new messages