X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_CheckBox.js.html;h=517366caca63acda885fe81b533ffb854e69d82a;hb=393b842716b27c0bd11d076d5bc3d7c6fd472beb;hp=087612bca68ebc9c755a4b96f8642a5be66a85fd;hpb=67bb6d978185bc8ba70b1c98c04b3409bf9b5081;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_CheckBox.js.html b/docs/symbols/src/Roo_bootstrap_CheckBox.js.html
index 087612bca6..517366caca 100644
--- a/docs/symbols/src/Roo_bootstrap_CheckBox.js.html
+++ b/docs/symbols/src/Roo_bootstrap_CheckBox.js.html
@@ -17,7 +17,6 @@
* @cfg {Boolean} checked initnal the element
* @cfg {Boolean} inline inline the element (default false)
* @cfg {String} groupId the checkbox group id // normal just use for checkbox
- * @cfg {String} targetLabel
*
* @constructor
* Create a new CheckBox
@@ -48,7 +47,6 @@
checked: false,
weight : false,
inline: false,
- targetLabel : false,
getAutoCreate : function()
{
@@ -394,6 +392,16 @@
this.fireEvent('valid', this);
+ var label = Roo.bootstrap.FieldLabel.get(this.name + '-group');
+
+ if(this.groupId){
+ label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group');
+ }
+
+ if(label){
+ label.markValid();
+ }
+
if(this.inputType == 'radio'){
Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
e.findParent('.form-group', false, true).removeClass([_this.invalidClass, _this.validClass]);
@@ -435,8 +443,16 @@
this.fireEvent('invalid', this, msg);
+ var label = Roo.bootstrap.FieldLabel.get(this.name + '-group');
+ if(this.groupId){
+ label = Roo.bootstrap.FieldLabel.get(this.groupId + '-group');
+ }
+ if(label){
+ label.markInvalid();
+ }
+
if(this.inputType == 'radio'){
Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
e.findParent('.form-group', false, true).removeClass([_this.invalidClass, _this.validClass]);
@@ -453,7 +469,7 @@
}
var group = Roo.bootstrap.CheckBox.get(this.groupId);
-
+
if(!group){
return;
}