Roo/bootstrap/CheckBox.js
authoredward <edward@roojs.com>
Wed, 6 Apr 2016 04:36:28 +0000 (12:36 +0800)
committeredward <edward@roojs.com>
Wed, 6 Apr 2016 04:36:28 +0000 (12:36 +0800)
Roo/bootstrap/CheckBox.js

index 6fdb98d..3e99335 100644 (file)
@@ -433,7 +433,11 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
         
         this.fireEvent('invalid', this, msg);
         
+        var label = Roo.bootstrap.FieldLabel.get(this.name + '-group');
         
+        if(label){
+            label.markInvalid();
+        }
         
         if(this.inputType == 'radio'){
             Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){