1
0
Fork 0
forked from 0x2620/oxjs

some support for adding/removing places

This commit is contained in:
rolux 2011-05-29 17:09:42 +02:00
commit ccc4a743d8
4 changed files with 76 additions and 44 deletions

View file

@ -201,10 +201,16 @@ Ox.TextList = function(options, self) {
}
})
.bindEvent({
edit: function(event, data) {
edit: function(data) {
that.editCell(data.id, data.key);
},
select: function(event, data) {
init: function(data) {
// fixme: why does this never reach?
//Ox.print('INIT????')
//that.triggerEvent('init', data);
},
select: function(data) {
Ox.print('SELECT????')
self.options.selected = data.ids;
}
})
@ -702,8 +708,10 @@ Ox.TextList = function(options, self) {
}
};
// fixme: doesn't work, doesn't return that
that.closePreview = that.$body.closePreview;
that.closePreview = function() {
that.$body.closePreview();
return that;
};
that.addItem = function(item) {
/*