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