Opened 10 years ago

Closed 2 years ago

#5048 closed bug (patcheswelcome)

Sortable: Dragging SWFs causes the SWFs to be re-created

Reported by: rantkowi Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.7.2
Keywords: plugin, object, swf, clone Cc:
Blocked by: Blocking:

Description

I am trying to use jQuery UI Draggable to allow the user to drag around a DIV that contains innerHTML which defines a HTML object such as a flash SWF.

When the user begins to drag (and I also believe when the user stops dragging) I noticed that the plugin object is re-created (and in the process, the previous state of what the user was doing with the plugin is lost.)

I assume that this is happening because of the call to:

var clonedEl = elm.cloneNode(true);

inside of dragstart : function(e) (in the file idrag.js.)

Change History (6)

comment:1 Changed 10 years ago by Jörn Zaefferer

What is idrag.js? Where is that coming from? We can't fix your code without even taking a look.

comment:2 Changed 10 years ago by varenc

I too am experiencing trouble with this.

Here's my example at http://jsbin.com/areko/2 . (code at http://jsbin.com/areko/2/edit) Play the youtube movie, then try to drag the element its contained it, and the movie will reset.

Any solution to this would be greatly appreciated

comment:3 Changed 7 years ago by Scott González

Milestone: TBD2.0.0

comment:4 Changed 7 years ago by mikesherov

Cc: rantkowi@… removed
Component: ui.draggableui.sortable
Status: newopen
Summary: Dragging plugin objects (such as Flash SWFs) causes the SWFs to be re-createdSortable: Dragging SWFs causes the SWFs to be re-created

This is only happening on a sortable, and not on a draggable: http://jsfiddle.net/Dv4kD/1/ Not sure if we want to fix this bug, but I'll mark it as open for now.

comment:5 Changed 7 years ago by tj.vantoll

#5068 is a duplicate of this ticket.

comment:6 Changed 2 years ago by Scott González

Resolution: patcheswelcome
Status: openclosed

I'm going to close this since I have a feeling people aren't sorting SWF objects anymore.

Note: See TracTickets for help on using tickets.