Ensure that the sort order of crops is saved

This commit is contained in:
Kenn Jacobsen
2018-11-20 09:48:25 +01:00
committed by Sebastiaan Janssen
parent a37b2d42fb
commit 4092ab7277
2 changed files with 5 additions and 1 deletions

View File

@@ -69,4 +69,8 @@ angular.module("umbraco").controller("Umbraco.PrevalueEditors.CropSizesControlle
//there was an error, do the highlight (will be set back by the directive)
$scope.hasError = true;
};
$scope.sortableOptions = {
axis: 'y'
}
});

View File

@@ -58,7 +58,7 @@
</div>
<div ui-sortable="sortableOptions" class="umb-cropsizes__sortable">
<div ui-sortable="sortableOptions" class="umb-cropsizes__sortable" ng-model="model.value">
<div class="control-group umb-prevalues-multivalues__listitem" ng-repeat="item in model.value">
<i class="icon icon-navigation handle"></i>
<div class="umb-prevalues-multivalues__left">