Changes between Initial Version and Version 1 of Ticket #13791
- Timestamp:
- Aug 31, 2011, 1:43:46 PM (11 years ago)
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:1 When dragging from one Tree to another, and the Trees are connected to different stores, there are a number of pieces of missing functionality, including: 2 2 3 1) delete items from old store 3 '''1) delete items from old store''' 4 4 5 5 dojo/dnd/Source.js has this code run on drop: … … 15 15 If 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. 16 16 17 2) adding nodes to target 17 '''2) adding nodes to target''' 18 18 19 19 If 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 23 The itemCreator() method gets the new node's label (a.k.a. name) like this: 24 25 return { 26 "id": node.id, 27 "name": node.textContent || node.innerText || "" 28 }; 29 30 For !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.