|
|
@ -339,14 +339,15 @@ var editableList = new Sortable(editable, { |
|
|
|
name: 'advanced', |
|
|
|
name: 'advanced', |
|
|
|
pull: false, |
|
|
|
pull: false, |
|
|
|
put: true |
|
|
|
put: true |
|
|
|
}].forEach(function (opts, i) { |
|
|
|
}].forEach(function (groupOpts, i) { |
|
|
|
new Sortable(document.getElementById('advanced-' + (i + 1)), { |
|
|
|
new Sortable(document.getElementById('advanced-' + (i + 1)), { |
|
|
|
sort: (i != 1), |
|
|
|
sort: (i != 1), |
|
|
|
group: opts, |
|
|
|
group: groupOpts, |
|
|
|
animation: 150 |
|
|
|
animation: 150 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
angular.module('todoApp', ['ng-sortable']) |
|
|
|
angular.module('todoApp', ['ng-sortable']) |
|
|
|
.controller('TodoController', ['$scope', function ($scope) { |
|
|
|
.controller('TodoController', ['$scope', function ($scope) { |
|
|
|
$scope.todos = [ |
|
|
|
$scope.todos = [ |
|
|
|