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,
|
||||
scrollbarVisible: true,
|
||||
sort: self.options.sort,
|
||||
sortable: self.options.editable && self.options.sort[0].key == 'index',
|
||||
sortable: isSortable(),
|
||||
unique: 'id'
|
||||
});
|
||||
} else {
|
||||
|
@ -185,7 +185,6 @@ Ox.ClipPanel = function(options, self) {
|
|||
},
|
||||
move: function(data) {
|
||||
data.ids.forEach(function(id, index) {
|
||||
Ox.print('????', id, index);
|
||||
self.$list.value(id, 'index', index);
|
||||
});
|
||||
that.triggerEvent('move', data);
|
||||
|
|
Loading…
Reference in a new issue