google-code-export / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

minute_interval cannot be set #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<%= calendar_date_select_tag "select_date1", Time.now.strftime("%Y-%m-%d %
H:00"), :minute_interval => 15, :popup => "force", :time => true %>

When I want to set minute_interval for calendar, it seems useless. And the 
generate html page show like this:
<input id="select_date1" name="select_date1" readonly="readonly" 
type="text" value="2008-06-25" /> <img alt="Calendar" onclick="new 
CalendarDateSelect( $(this).previous(), {popup:'force', year_range:10} );" 
src="/images/calendar_date_select/calendar.gif?1210180084" 
style="border:0px; cursor:pointer;" />

Original issue reported on code.google.com by xiaoq...@gmail.com on 25 Jun 2008 at 3:54

GoogleCodeExporter commented 9 years ago
I have the same defect.  I am using calendar_date_select with active_scaffold 
with a
custom form_column helper (Rails 2.1, AS 1.2RC1, current calendar_date_select,
Firefox 2.0.14, Prototype 1.6.0.1)

I am not able to set the :minute_helper to 1 (which is the value I need).  I 
have
temporarily enabled edit for field instead of :popup=>"force" for the user to 
fix it
themselves.

Original comment by talksens...@gmail.com on 2 Jul 2008 at 9:51

GoogleCodeExporter commented 9 years ago
update: This defect is the same as Issue 81.  It is fixed by adding 
:minute_interval
in line number 116 in calendar_date_select.rb in the lib directory.

Original comment by talksens...@gmail.com on 2 Jul 2008 at 9:56