This commit is contained in:
rolux 2012-05-22 17:35:26 +02:00
parent 16ab404619
commit 08e1561e43

View file

@ -111,7 +111,7 @@ Ox.OptionGroup = function(items, min, max, property) {
this.value = function() {
var value = items.filter(function(item) {
return item[property];
}).function(item) {
}).map(function(item) {
return item.id;
});
return max == 1 ? (value.length ? value[0] : '') : value;