- Timestamp:
- 07/25/12 16:04:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/QuestionEditorPreview.js
r366 r376 45 45 item: item 46 46 }); 47 return {node: previewItem.domNode, data: item, type: "PreviewItem"};47 return {node: previewItem.domNode, data: previewItem, type: item.type}; 48 48 break; 49 49 } … … 59 59 return innerWidget; 60 60 }, 61 InsertObjects: function(/*Array*/objects) {61 insertObjects: function(/*Array*/objects) { 62 62 // This takes an array of objects {data:{//props}, type:[//types]}. Node is NOT included! 63 63 objects.forEach(function(item){ … … 65 65 }, this); 66 66 }, 67 RemoveObject: function(widget) { 67 getContent: function() { 68 content = []; 69 var nodes = this.dndSource.getAllNodes(); 70 for (var i = 0; i < nodes.length; i++) { 71 content.push(this.dndSource.getItem(nodes[i].id).data.getContent()); 72 } 73 return content; 68 74 }, 69 GetNodeList: function() {75 getNodeList: function() { 70 76 return this.dndSource.getAllNodes(); 71 77 },
Note: See TracChangeset
for help on using the changeset viewer.