1
0
Fork 0
forked from 0x2620/oxjs

some listmap fixes

This commit is contained in:
rolux 2011-05-30 14:06:58 +02:00
commit 5e54f5394d
3 changed files with 16 additions and 8 deletions

View file

@ -117,6 +117,8 @@ Ox.Form = function(options, self) {
if (arguments.length == 0) {
self.$items.forEach(function($item, i) {
values[self.itemIds[i]] = self.$items[i].value();
//fixme: make the following work
//values[self.itemIds[i]] = self.$items[i].options('value');
});
//Ox.print('VALUES', values)
return values;

View file

@ -38,7 +38,8 @@ Ox.Select = function(options, self) {
size: 'medium',
title: '',
type: 'text', // can be 'text' or 'image'
width: 'auto'
width: 'auto',
value: [],
})
// fixme: make default selection restorable
// or allow for extra action items below options
@ -168,7 +169,9 @@ Ox.Select = function(options, self) {
}
self.setOption = function(key, value) {
if (key == 'value') {
that.selectItem(value);
}
};
/*@