remove sortable from media grid until we find a way to save sort order
This commit is contained in:
@@ -12,20 +12,6 @@
|
||||
var itemMaxWidth = 300;
|
||||
var itemMaxHeight = 300;
|
||||
|
||||
scope.mediaItemsSortingOptions = {
|
||||
distance: 10,
|
||||
tolerance: "pointer",
|
||||
opacity: 0.7,
|
||||
scroll: true,
|
||||
cursor: "move",
|
||||
zIndex: 6000,
|
||||
placeholder: "umb-media-grid__placeholder",
|
||||
start: function(e, ui) {
|
||||
ui.placeholder.height(ui.item.height());
|
||||
ui.placeholder.width(ui.item.width());
|
||||
}
|
||||
};
|
||||
|
||||
function activate() {
|
||||
|
||||
scope.mediaItems = [];
|
||||
|
||||
@@ -125,9 +125,3 @@
|
||||
animation-duration: 0.2s;
|
||||
animation-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
.umb-media-grid__placeholder {
|
||||
background: @grayLighter;
|
||||
border: 2px dashed @grayLight;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="umb-media-grid" ui-sortable="mediaItemsSortingOptions" ng-model="mediaItems">
|
||||
<div class="umb-media-grid">
|
||||
|
||||
<a href="" ng-click="clickItem(item)" ng-repeat="item in mediaItems" ng-style="item.flexStyle" class="umb-media-grid__item">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user