1
0
Fork 0
forked from 0x2620/oxjs

improve listmap editing functionality

This commit is contained in:
rolux 2011-05-24 13:43:27 +02:00
commit b17e8a783b
6 changed files with 48 additions and 35 deletions

View file

@ -351,6 +351,7 @@ Ox.TextList = function(options, self) {
width: getItemWidth() + 'px'
});
self.visibleColumns.forEach(function(v, i) {
//Ox.print(data[v.id], '(--value--)')
var clickable = Ox.isBoolean(v.clickable) ? v.clickable : v.clickable(data),
editable = Ox.isBoolean(v.editable) ? v.editable : v.editable(data),
$cell = $('<div>')
@ -626,7 +627,7 @@ Ox.TextList = function(options, self) {
}
self.setOption = function(key, value) {
Ox.print('---------------------------- TextList setOption', key, value)
//Ox.print('---------------------------- TextList setOption', key, value)
if (key == 'items') {
that.$body.options(key, value);
} else if (key == 'paste') {