Roo/bootstrap/CheckBox.js
authorEdward <edward@roojs.com>
Mon, 28 Apr 2014 04:39:36 +0000 (12:39 +0800)
committerEdward <edward@roojs.com>
Mon, 28 Apr 2014 04:39:36 +0000 (12:39 +0800)
Roo/bootstrap/CheckBox.js

index f0b75b5..5f9cd3f 100644 (file)
@@ -51,7 +51,7 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
             id : id,
             type : this.inputType,
             value : this.value,
-            cls : 'form-control form-checkbox',
+            cls : 'form-checkbox',
             placeholder : this.placeholder || ''
             
         };
@@ -154,6 +154,14 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
         
     },
     
+    /**
+     * return the real input element.
+     */
+    inputEl: function ()
+    {
+        return this.el.select('input.form-control',true).first();
+    },
+    
     initEvents : function()
     {