From 1d3c17d4b297f13e6c5f67e797a13dceb6943d77 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 10:39:32 +0000 Subject: [PATCH] use isSortable --- source/Ox.UI/js/Video/ClipPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/ClipPanel.js b/source/Ox.UI/js/Video/ClipPanel.js index cab08fb2..0c5ce95a 100644 --- a/source/Ox.UI/js/Video/ClipPanel.js +++ b/source/Ox.UI/js/Video/ClipPanel.js @@ -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);