From d7786e79a5bdd8d10084baaa44a0d62ba2a6ae9e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 13:48:41 +0000 Subject: [PATCH] only index+ is sortable --- source/Ox.UI/js/Video/ClipPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/ClipPanel.js b/source/Ox.UI/js/Video/ClipPanel.js index 0c29aeb7..93635bdf 100644 --- a/source/Ox.UI/js/Video/ClipPanel.js +++ b/source/Ox.UI/js/Video/ClipPanel.js @@ -271,7 +271,10 @@ Ox.ClipPanel = function(options, self) { } 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() {