PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Calendar Date Select breaks when date format is set #725

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I change the date format of a column with:

    config.columns[:column_name].options = {:format => :long} 

Then this breaks the calendar date select. I get the following javascript
error when I try to bring up the calendar in the form:

    long is not defined
    function onclick(event) { new
CalendarDateSelect($(this).previous(),{format: long, year_range: 10}); }()6
(line 2)
    [Break on this error] new CalendarDateSelect($(this)...s(), {format:
long, year_range: 10}); 

Original issue reported on code.google.com by ruinenl...@gmail.com on 31 Jan 2010 at 3:19

GoogleCodeExporter commented 9 years ago
I am not familar with the code, but if someone could give me a few pointers to 
where
I might look to fix this, than I will attempt to tackle this myself.

Thanks

Original comment by ruinenl...@gmail.com on 15 Feb 2010 at 6:30

GoogleCodeExporter commented 9 years ago
ActiveScaffold only pass column.options to calendar_date_select method, if 
there is
a bug should be in calendar date select code, which I can't fix. Have you tried 
to
change :long with 'long'? maybe with string works.

Original comment by sergio.c...@gmail.com on 16 Feb 2010 at 8:31