mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
rewrite: min-safe sort
This commit is contained in:
parent
bbab8eb73c
commit
ca5e931730
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ habitrpg.directive('whenScrolled', function() {
|
|||
/**
|
||||
* Add sortable
|
||||
*/
|
||||
habitrpg.directive('habitrpgSortable', function (User) {
|
||||
habitrpg.directive('habitrpgSortable', ['User', function(User) {
|
||||
return function($scope, element, attrs, ngModel) {
|
||||
$(element).sortable({
|
||||
axis: "y",
|
||||
|
|
@ -70,4 +70,4 @@ habitrpg.directive('habitrpgSortable', function (User) {
|
|||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue