only index+ is sortable

This commit is contained in:
j 2013-07-14 13:48:41 +00:00
parent 7dc86d3ca2
commit d7786e79a5

View file

@ -271,7 +271,10 @@ Ox.ClipPanel = function(options, self) {
} }
function isSortable() { function isSortable() {
return self.options.editable && self.options.sort[0].key == 'index'; return self.options.editable
&& self.options.sort && self.options.sort.length
&& self.options.sort[0].key == 'index'
&& self.options.sort[0].operator == '+';
} }
function updateSortElement() { function updateSortElement() {