From 3104ccb9ec66b56a3d3c57bb0830b7a17ce5274e Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 14 Nov 2018 10:03:07 +0000 Subject: [PATCH] fix #3188 (clip index should be displayed starting at 1) --- source/UI/js/Video/ClipPanel.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source/UI/js/Video/ClipPanel.js b/source/UI/js/Video/ClipPanel.js index cedc7edb..43e430e4 100644 --- a/source/UI/js/Video/ClipPanel.js +++ b/source/UI/js/Video/ClipPanel.js @@ -93,21 +93,24 @@ Ox.ClipPanel = function(options, self) { { align: 'right', id: 'index', + format: function(value) { + return value + 1; + }, operator: '+', title: Ox._('Index'), visible: false, width: 60 }, { - id: 'id', - operator: '+', - title: Ox._('ID'), format: function(value, data) { return data.annotation ? data.annotation : data.item; }, + id: 'id', + operator: '+', sort: function(value, data) { return data.sort; }, + title: Ox._('ID'), unique: true, width: 60 }, @@ -117,11 +120,11 @@ Ox.ClipPanel = function(options, self) { operator: '+', sort: function(value, data) { return data.sort; - }, + } }, { - id: 'title', format: self.options.formatTitle, + id: 'title', operator: '+', sort: function(value, data) { return data.sort;