Changes between Initial Version and Version 1 of Ticket #13791


Ignore:
Timestamp:
Aug 31, 2011, 1:43:46 PM (11 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13791 – Description

    initial v1  
    1 When dragging from one Tree to another, and the Trees are connected to different stores, there are (at least) two pieces of missing functionality:
     1When dragging from one Tree to another, and the Trees are connected to different stores, there are a number of pieces of missing functionality, including:
    22
    3 1) delete items from old store
     3'''1) delete items from old store'''
    44
    55dojo/dnd/Source.js has this code run on drop:
     
    1515If the source is a Tree, it becomes more complicated, because the !TreeNode being dragged may represent an item with multiple parents.   In this case, should the whole item be deleted, or just unlink the parent/child relationship indicated by that !TreeNode?    Probably the former.
    1616
    17 2) adding nodes to target
     17'''2) adding nodes to target'''
    1818
    1919If the user drags "Asia" from TreeA to TreeB, seems like it should move not only "Asia", but all the descendants of "Asia" too, some of which may not even have been fetched from the data store yet.
     20
     21'''3) label created incorrectly'''
     22
     23The itemCreator() method gets the new node's label (a.k.a. name) like this:
     24
     25return {
     26        "id": node.id,
     27        "name": node.textContent || node.innerText || ""
     28};
     29
     30For !TreeNodes that gets some garbage characters (newlines and spaces), and probably has issues with special characters like "&" too.      Should be calling {{{store.getLabel(node.item)}}}, or something like that.