projects
/
tanks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
693c3de
)
Config UI scaffold.
author
dsc
<david.schoonover@gmail.com>
Fri, 17 Dec 2010 12:16:34 +0000 (
04:16
-0800)
committer
dsc
<david.schoonover@gmail.com>
Fri, 17 Dec 2010 12:16:34 +0000 (
04:16
-0800)
src/Y/modules/y.scaffold.cjs
patch
|
blob
|
history
diff --git
a/src/Y/modules/y.scaffold.cjs
b/src/Y/modules/y.scaffold.cjs
index
45a9d5c
..
75d23d3
100644
(file)
--- a/
src/Y/modules/y.scaffold.cjs
+++ b/
src/Y/modules/y.scaffold.cjs
@@
-104,11
+104,15
@@
Y.subclass('Field', {
}
if (this.type === 'checkbox')
el.attr('checked', !!this.val);
+
return this;
},
onChange : function onChange(evt){
- this.update( this.cast(this.elField.val()) );
+ if (this.type === 'checkbox')
+ this.update( this.elField.attr('checked') );
+ else
+ this.update( this.cast(this.elField.val()) );
}
})