projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #7418 - radio button set value
[roojs1]
/
Roo
/
form
/
Checkbox.js
diff --git
a/Roo/form/Checkbox.js
b/Roo/form/Checkbox.js
index
85903b8
..
634c510
100644
(file)
--- a/
Roo/form/Checkbox.js
+++ b/
Roo/form/Checkbox.js
@@
-190,7
+190,9
@@
Roo.extend(Roo.form.Checkbox, Roo.form.Field, {
this.fireEvent('check', this, state);
}
this.inSetChecked = true;
this.fireEvent('check', this, state);
}
this.inSetChecked = true;
- this.el.dom.value = state ? this.inputValue : this.valueOff;
+
+ this.el.dom.value = state ? this.inputValue : this.valueOff;
+
this.inSetChecked = false;
},
this.inSetChecked = false;
},
@@
-212,6
+214,11
@@
Roo.extend(Roo.form.Checkbox, Roo.form.Field, {
}
Roo.form.Checkbox.superclass.onDestroy.call(this);
}
Roo.form.Checkbox.superclass.onDestroy.call(this);
+ },
+
+ setBoxLabel : function(str)
+ {
+ this.wrap.select('.x-form-cb-label', true).first().dom.innerHTML = str;
}
});
\ No newline at end of file
}
});
\ No newline at end of file