1
0
Fork 0
forked from 0x2620/oxjs

form elements rewrite, part 2

This commit is contained in:
rolux 2011-12-21 21:03:52 +05:30
commit 074902d079
33 changed files with 163 additions and 153 deletions

View file

@ -156,6 +156,11 @@ Ox.Select = function(options, self) {
self.options.title ? self.options.title : getItem(self.options.value).title
);
that.triggerEvent('change', {
title: Ox.isString(self.options.value)
? getItem(self.options.value).title
: self.options.value.map(function(value) {
return getItem(value).title;
}),
value: self.options.value
});
}