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 <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to