pjobson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-01 18:08 UTC
script.aculo.us - add to afterFinishInternal...
Hi all, I''m a script.aculo.us noobie, but I''m pretty good with
javascript.
I''d like to add a function in afterFinishInternal in both
Effect.BlindUp and Effect.BlindDown, is there an easy way to do this or
should I just write a modified version of the effect?
Most basically:
Effect.BlindUp = function(element) {
element = $(element);
element.makeClipping();
return new Effect.Scale(element, 0,
Object.extend({ scaleContent: false,
scaleX: false,
restoreAfterFinish: true,
afterFinishInternal: function(effect) {
effect.element.hide().undoClipping();
// ---- alert when finished ----
alert(''finished'');
// ---- alert when finished ----
}
}, arguments[1] || {})
);
}
Of course I''d like to do more than make an alert, but the details
aren''t extremely important.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---