Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5290 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Draggable.finishDrag () should deactivate () before fire ()

Reported by: Aa! Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: minor Keywords: Draggable
Cc:

Description

I don't know if I'm the only one experiencing this problem but I've had trouble with dialogs appearing during onDrop callbacks. As soon as the pointer enters a 'confirm' dialog box, for instance, the window is updated and the draggable catches the pointer up.

If it doesn't involve any problem, the draggable should be deactivated before the drop event is fired. This means that the line:

Draggables.deactivate (this);

should come up right before:

if(success) Droppables.fire(event, this.element);

By the way, why do you pass 'this' as a parameter?

Change History

06/17/06 01:55:06 changed by anonymous

  • keywords set to Draggable.