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

View file

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

View file

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

View file

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

View file

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