|
|
@ -26,7 +26,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
angular.module('ng-sortable', []) |
|
|
|
angular.module('ng-sortable', []) |
|
|
|
.constant('version', '0.3.7') |
|
|
|
.constant('version', '0.3.7') |
|
|
|
.directive('ngSortable', ['$parse', function ($parse) { |
|
|
|
.constant('ngSortableConfig', {}) |
|
|
|
|
|
|
|
.directive('ngSortable', ['$parse', 'ngSortableConfig', function ($parse, ngSortableConfig) { |
|
|
|
var removed, |
|
|
|
var removed, |
|
|
|
nextSibling; |
|
|
|
nextSibling; |
|
|
|
|
|
|
|
|
|
|
@ -67,7 +68,7 @@ |
|
|
|
scope: { ngSortable: "=?" }, |
|
|
|
scope: { ngSortable: "=?" }, |
|
|
|
link: function (scope, $el, attrs) { |
|
|
|
link: function (scope, $el, attrs) { |
|
|
|
var el = $el[0], |
|
|
|
var el = $el[0], |
|
|
|
options = scope.ngSortable || {}, |
|
|
|
options = angular.extend(scope.ngSortable || {}, ngSortableConfig), |
|
|
|
source = getSource(el), |
|
|
|
source = getSource(el), |
|
|
|
watchers = [], |
|
|
|
watchers = [], |
|
|
|
sortable |
|
|
|
sortable |
|
|
|