fix #3188 (clip index should be displayed starting at 1)

This commit is contained in:
rlx 2018-11-14 10:03:07 +00:00
parent 810b690a6c
commit 3104ccb9ec

View file

@ -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;