Closed GoogleCodeExporter closed 9 years ago
sorry, this isn't a defect.
Original comment by printabl...@gmail.com
on 11 Apr 2008 at 2:46
This is a good idea - setting the time to "now" isn't very helpful. It could
likely be accomplished with a single
default Date/Time option.
Original comment by timchar...@gmail.com
on 18 May 2008 at 3:01
Here is how we have tweaked calendar_date_select to use default_hour and
default_min :
in vendor/plugins/calendar_date_select/lib/calendar_date_select.rb
in calendar_date_select_process_options(options)
add : :default_hour, :default_min to the key list (line 116)
in the calendar_date_select.js file
in parseDate
replace :
if (isNaN(this.date)) { this.date = new Date(); }
by :
if (isNaN(this.date))
{
this.date = new Date();
if(this.options.get("default_hour")) {
this.date.setHours(this.options.get("default_hour"));
this.date.setMinutes(0);
}
if(this.options.get("default_min")) {
this.date.setMinutes(this.options.get("default_min"));
}
}
Original comment by Raphael.Emourgeon
on 9 Nov 2008 at 2:23
Original comment by timchar...@gmail.com
on 30 Nov 2008 at 8:28
Related issue: #125
Original comment by timchar...@gmail.com
on 30 Nov 2008 at 8:37
Added to release 1.16.
Original comment by shih....@gmail.com
on 1 Apr 2010 at 12:58
Original issue reported on code.google.com by
printabl...@gmail.com
on 11 Apr 2008 at 2:36