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', align: 'right',
id: 'index', id: 'index',
format: function(value) {
return value + 1;
},
operator: '+', operator: '+',
title: Ox._('Index'), title: Ox._('Index'),
visible: false, visible: false,
width: 60 width: 60
}, },
{ {
id: 'id',
operator: '+',
title: Ox._('ID'),
format: function(value, data) { format: function(value, data) {
return data.annotation ? data.annotation : data.item; return data.annotation ? data.annotation : data.item;
}, },
id: 'id',
operator: '+',
sort: function(value, data) { sort: function(value, data) {
return data.sort; return data.sort;
}, },
title: Ox._('ID'),
unique: true, unique: true,
width: 60 width: 60
}, },
@ -117,11 +120,11 @@ Ox.ClipPanel = function(options, self) {
operator: '+', operator: '+',
sort: function(value, data) { sort: function(value, data) {
return data.sort; return data.sort;
}, }
}, },
{ {
id: 'title',
format: self.options.formatTitle, format: self.options.formatTitle,
id: 'title',
operator: '+', operator: '+',
sort: function(value, data) { sort: function(value, data) {
return data.sort; return data.sort;