use isSortable
This commit is contained in:
parent
04d3160da8
commit
1d3c17d4b2
1 changed files with 1 additions and 2 deletions
|
@ -165,7 +165,7 @@ Ox.ClipPanel = function(options, self) {
|
||||||
items: self.options.clips,
|
items: self.options.clips,
|
||||||
scrollbarVisible: true,
|
scrollbarVisible: true,
|
||||||
sort: self.options.sort,
|
sort: self.options.sort,
|
||||||
sortable: self.options.editable && self.options.sort[0].key == 'index',
|
sortable: isSortable(),
|
||||||
unique: 'id'
|
unique: 'id'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -185,7 +185,6 @@ Ox.ClipPanel = function(options, self) {
|
||||||
},
|
},
|
||||||
move: function(data) {
|
move: function(data) {
|
||||||
data.ids.forEach(function(id, index) {
|
data.ids.forEach(function(id, index) {
|
||||||
Ox.print('????', id, index);
|
|
||||||
self.$list.value(id, 'index', index);
|
self.$list.value(id, 'index', index);
|
||||||
});
|
});
|
||||||
that.triggerEvent('move', data);
|
that.triggerEvent('move', data);
|
||||||
|
|
Loading…
Reference in a new issue