in TableLists, use options.unique, not options.columns[i].unique

This commit is contained in:
rolux 2012-06-27 20:38:07 +02:00
parent 5da1b606eb
commit 55e2174831
5 changed files with 9 additions and 15 deletions

View file

@ -141,7 +141,6 @@ Ox.CalendarEditor = function(options, self) {
},
operator: '-',
title: 'Duration',
unique: true,
visible: true,
width: 256
},
@ -239,7 +238,8 @@ Ox.CalendarEditor = function(options, self) {
pageLength: self.options.pageLength,
scrollbarVisible: true,
selected: self.options.selected ? [self.options.selected] : [],
sort: self.options.sort
sort: self.options.sort,
unique: 'id'
})
.bindEvent({
'delete': removeEvent,

View file

@ -141,13 +141,13 @@ Ox.FileInput = function(options, self) {
});
},
id: 'id',
unique: true,
visible: true,
width: 28
}
],
items: getItems(),
sort: [{key: 'name', operator: '+'}]
sort: [{key: 'name', operator: '+'}],
unique: 'id'
})
.css({
left: 0,

View file

@ -23,7 +23,6 @@ Ox.FormPanel = function(options, self) {
columns: [
{
id: 'id',
unique: true,
visible: false
},
{
@ -63,6 +62,7 @@ Ox.FormPanel = function(options, self) {
min: 1,
selected: [self.options.form[0].id],
sort: [{key: 'id', operator: '+'}],
unique: 'id',
width: 256
}).bindEvent({
select: function(data) {

View file

@ -176,7 +176,8 @@ Ox.Chart = function(options, self) {
min: 0,
pageLength: self.items.length,
sort: [self.options.sort],
width: self.options.width
width: self.options.width,
unique: 'key'
})
.css({
left: 0,

View file

@ -76,14 +76,6 @@ Ox.MapEditor = function(options, self) {
};
self.columns = [
{
addable: false, // fixme: implement
id: 'id',
title: 'Id',
unique: true,
visible: false,
width: 32
},
{
format: function(value, data) {
return data.type
@ -345,7 +337,8 @@ Ox.MapEditor = function(options, self) {
pageLength: self.options.pageLength,
scrollbarVisible: true,
selected: self.options.selected ? [self.options.selected] : [],
sort: self.options.sort
sort: self.options.sort,
unique: 'id'
})
.bindEvent({
'delete': removeItem,