- }
- var i, slide;
- for(i=0 ; i<this.draggedSelection.length ; i++) {
- slide = this.draggedSelection[i];
- slide.style.opacity = 1;
- slide.style.width = '';
+ var i, slide;
+ for(i=this.draggedSelection.length -1 ; i>=0 ; i--) {
+ console.log(i);
+ slide = this.draggedSelection[i].cloneNode(true);
+ this.grid.insertBefore(slide, this.previousDragOver.nextSibling);
+ slide.style.opacity = 1;
+ slide.style.width = '';
+ }