1
0
Fork 0
forked from 0x2620/oxjs

some changes to files view

This commit is contained in:
rlx 2011-06-04 01:41:47 +00:00
commit 62df91961e
2 changed files with 143 additions and 15 deletions

View file

@ -39,8 +39,8 @@ Ox.Checkbox = function(options, self) {
if (self.options.title) {
self.options.width != 'auto' && that.css({
width: self.options.width + 'px'
});
width: self.options.width + 'px'
});
self.$title = new Ox.Label({
disabled: self.options.disabled,
id: self.options.id + 'Label',
@ -107,6 +107,11 @@ Ox.Checkbox = function(options, self) {
return that;
}
// fixme: added for forms, duplicated, checked() shouldn't be neccessary
that.value = function() {
return self.options.checked;
}
return that;
};