use isSortable

This commit is contained in:
j 2013-07-14 10:39:32 +00:00
parent 04d3160da8
commit 1d3c17d4b2

View file

@ -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);