Hi,
Sorry, I''m using a old version of script.aculo.us script, so the
Event.stop is in the wrong place, now it was upgraded to 1.6.4.
The Event.stop is now in
Draggable.prototype = {
....
initDrag: function(event) {
.....
Event.stop(event);
}
...
why Event.stop(event); ?
On 10/1/06, Teddy C <teddy.c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> I''m writing a draggable input field and we have some legacy code
to
> enable some "switch" effect like inPlaceEditor
>
> we hope that input field will be closed, as user click somewhere else
> after editting (no "OK" button submit)
>
> i have written some code like that
> onBlur:function(){
> setTimeout(this.leaveEditMode(), 200);
> },
>
> But it will not be called, the whole div shows drag effect. So i jump
> to Draggable and find
> Event.stop(event); at the ende of startDrag();
>
> Draggable
> ...
> startDrag: function(event) {
> ...
> Event.stop(event);
> }
>
> if i comment it out, input field would be closed on blur event, fine.
> But some how a draggable element inside of another draggable list will
> not work, remove backslash, it work again...
>
> Did somebody else have this problem? What is the propose for this
> "Event.stop(event);" here? Which side effect could come if i
comment
> it? Is it possible to workarround?
>
>
>
> Best greetings @all
>
> Ted
>
--~--~---------~--~----~------------~-------~--~----~
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
groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---