diff options
author | Jon Reid | 2012-05-17 16:52:16 -0700 |
---|---|---|
committer | Jon Reid | 2012-05-17 16:52:16 -0700 |
commit | a696dffcc84b4d2719f8fa918676f9575858ca9a (patch) | |
tree | b1a04c4b9ac1f9625962351b108375b6ed4cf481 /js/mediators | |
parent | 9f60a7393d2b6e2eb14ae2d8fb1d0fe6137e3ea6 (diff) | |
download | ninja-a696dffcc84b4d2719f8fa918676f9575858ca9a.tar.gz |
Timeline: Multiselect improvements. New convenience methods. Multiselect
drag and drop.
Diffstat (limited to 'js/mediators')
-rwxr-xr-x | js/mediators/element-mediator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 06514076..9c8a9ac4 100755 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -524,9 +524,9 @@ exports.ElementMediator = Montage.create(Component, { | |||
524 | length = layersDraggedArray.length; | 524 | length = layersDraggedArray.length; |
525 | 525 | ||
526 | for(var i=0; documentRoot.children[i]; i++) { | 526 | for(var i=0; documentRoot.children[i]; i++) { |
527 | if(documentRoot.children[i] === layerDroppedAfter.layerData.elementsList[0]) { | 527 | if(documentRoot.children[i] === layerDroppedAfter.layerData.stageElement) { |
528 | if(length >0){ | 528 | if(length >0){ |
529 | documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.elementsList[0], documentRoot.children[i]); | 529 | documentRoot.children[i].parentNode.insertBefore(layersDraggedArray[length-1].layerData.stageElement, documentRoot.children[i]); |
530 | } | 530 | } |
531 | 531 | ||
532 | /* Will require for Multiple Drag n Drop */ | 532 | /* Will require for Multiple Drag n Drop */ |