From 91f6fa56a68e78defef86036557449cc370de455 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Wed, 29 Jan 2014 23:20:48 +0200 Subject: [PATCH] Added droptarget to sortable property of ui.item to allow complex canceling. --- src/sortable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sortable.js b/src/sortable.js index 91f586e..ee6ff37 100644 --- a/src/sortable.js +++ b/src/sortable.js @@ -101,6 +101,7 @@ angular.module('ui.sortable', []) // the value will be overwritten with the old value if(!ui.item.sortable.received) { ui.item.sortable.dropindex = ui.item.index(); + ui.item.sortable.droptarget = ui.item.parent(); // Cancel the sort (let ng-repeat do the sort for us) // Don't cancel if this is the received list because it has