Roo/bootstrap/CheckBox.js
authoredward <edward@roojs.com>
Mon, 5 Oct 2015 03:08:21 +0000 (11:08 +0800)
committeredward <edward@roojs.com>
Mon, 5 Oct 2015 03:08:21 +0000 (11:08 +0800)
Roo/bootstrap/CheckBox.js

index 9f6deac..8f7f0dd 100644 (file)
@@ -321,9 +321,11 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
                 (this.inputType == 'radio' && this.getValue().length) ||
                 (this.inputType == 'checkbox' && this.getValue() == this.inputValue)
         ){
+            this.markValid();
             return true;
         }
         
+        this.markInvalid();
         return false;
     }