forked from 0x2620/oxjs
some support for adding/removing places
This commit is contained in:
parent
6229b16a59
commit
ccc4a743d8
4 changed files with 76 additions and 44 deletions
|
|
@ -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) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue