On Martes, 1 de Diciembre de 2009 17:00:59 mikev escribió:
> How do I get the close / 'x' button to refresh the list view for an
> action link with :type => :table that displays a different
> controller.  I'm doing a specialized version of 'add existing'.
> Currently the additions work but when I close the list opened by the
> action link the list that the :table action link is on does not get
> refreshed.  My current code is:
>
>  active_scaffold_config.action_links.add(:list,
>
>       :label => 'Add Existing',
>       :type => :table,
>       :controller => :standard_data_items,
>       :parameters => { :constraints => {:domain =>
>
> domain_id, :standard => standard.id} })

You can override _list_inline_adapter and change the close link there. You can 
check the action_name if you want to use the original adapter for other 
actions.

Also, you can add some javascript to your view to change the onclick event, 
use stop_observing to remove current action and observe to attach your custom 
method.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--

You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.


Reply via email to