ruby on rails - Chaining a calendar_date_select to a select in ActiveScaffold -


I am trying to select the calendaer_date_select series for a selected field, so the selection list is filtered by the selected date is. I have described in accordance with the instructions

I have in the activescaffold config:

  config.column [: order_date] .form_ui =: calendar_date_select config.column [: order_date] .options = {: update_column = & gt; : Sales} config.column [: Sales] .form_ui =:  

Select ... and in Assistant:

  def options_for_association_conditions (Association) if the Association .name ==: Sales {'sales.order_date' = & gt; @ Record.order_date} and the Super End End  

The problem is that the JavaScript widget does not trigger a selection to refresh the selection, but if I type in the date then Does it have any idea?

It was a bug with ActiveScaffold that was fixed this morning. Then cloning the repository will solve your problems.

For records, the ActiveWeb method uses the view, as the calendar sets the date selection field. Changes to the field for ActiveScaffold column updates look for the event Events of change are triggered by the value of that field with an amendment, which is then with profit and lose focus. Calendar selects a date field to modify the value without giving or focusing on the focus.

If you do not feel like updating your plugins, then you can do your temperament together by doing the following:

 > config.column [ Order_date] .options = {: update_column = & gt; : Sales}  

to

  config.column [: order_date] .options = {: update_column = & gt; : Sales,: before_show = & gt; 'This.focus ()',: onchange = & gt; 'This.blur ()'}  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -