forked from 0x2620/oxjs
updating form elements
This commit is contained in:
parent
8550cc8442
commit
73f1105692
13 changed files with 305 additions and 140 deletions
|
|
@ -88,7 +88,11 @@ Ox.CheckboxGroup = function(options, self) {
|
|||
self.options.value = self.optionGroup.value();
|
||||
that.triggerEvent('change', {
|
||||
title: Ox.isString(self.options.value)
|
||||
? Ox.getObjectById(self.options.checkboxes, self.options.value).title
|
||||
? (
|
||||
self.options.value
|
||||
? Ox.getObjectById(self.options.checkboxes, self.options.value).title
|
||||
: ''
|
||||
)
|
||||
: self.options.value.map(function(value) {
|
||||
return Ox.getObjectById(self.options.checkboxes, value).title;
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue