Hi,

Which would be the best git repo to get the mark_records code?


Thanks

On 26 jul, 17:42, Justin <[email protected]> wrote:
> Thanks, Sergio.
>
> On Jul 26, 3:12 am, "Sergio Cambra .:: entreCables S.L. ::."
>
>
>
> <[email protected]> wrote:
> > On Sábado, 24 de Julio de 2010 23:57:11 Justin escribió:
>
> > > Hi everyone,
>
> > > I was wondering if there is any documentation on all the code
> > > surrounding 'mark_records'.
>
> > > I understand the basics; I can add check boxes by using
> > > config.list.mark_records = true.  And I know that I need to use
> > > active_scaffold_session_storage[:marked_records] in order to access
> > > (and process) any marked records.
>
> > It's better to use marked_records method instead of
> > active_scaffold_session_storage
>
> > > But, I would like to go a little further.  For right now, I'd like to
> > > know if there exists some sort of event that is fired when records are
> > > checked.  It would be nice to have my action_links that are relevant
> > > to the checkboxes to remain hidden until a box is checked.
>
> > Yes, a request for mark action is sent to server. I have just pushed a 
> > commit
> > to move JS response to a view, so you can override mark.js.rjs:
> > page << render(:super)
> > if marked_records.length.zero?
> >   code to hide action links
> > else
> >   code to show action links
> > end
>
> > > For example, having a "Delete all" link only visible when there are 1
> > > or more records checked.  From there I could maybe even have the link
> > > read "Delete all (n)" where 'n' is the number of marked records.
>
> > --
> > 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