Opened 10 years ago

Last modified 3 years ago

#10184 assigned enhancement

Easy way for drops on targets to get added to a referenced source

Reported by: Neil Roberts Owned by: Eugene Lazutkin
Priority: high Milestone: 1.15
Component: DnD Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:

Description

Attached a unit test:

Drag items from one of the lists to the headers

Attachments (1)

test_target.html (2.2 KB) - added by Neil Roberts 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Neil Roberts

Attachment: test_target.html added

comment:1 Changed 10 years ago by Neil Roberts

Talked through it with Eugene. If a new property was added to dojo.dnd.Target, say the source property, the onDrop function could be easily modified:

onDrop: function(source, nodes, copy){
 if(this.source){
   this.source.onDrop(source, nodes, copy);
 }else{
    dojo.dnd.Source.prototype.onDrop.apply(this, arguments);
 }
}

comment:2 Changed 10 years ago by Eugene Lazutkin

Milestone: tbdfuture
Status: newassigned

comment:3 Changed 3 years ago by dylan

Milestone: future1.12

comment:4 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.