Roo/bootstrap/CheckBox.js
authorAlan Knowles <alan@roojs.com>
Wed, 10 Jun 2015 07:52:46 +0000 (15:52 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 10 Jun 2015 07:52:46 +0000 (15:52 +0800)
Roo/bootstrap/CheckBox.js

index 0da3df2..50efbd8 100644 (file)
@@ -211,7 +211,9 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
 //        Roo.bootstrap.CheckBox.superclass.initEvents.call(this);
         
         this.inputEl().on('click', this.onClick,  this);
-        
+        if (this.boxLabel) { 
+            this.this.el.select('label.box-label',true).first().on('click', this.onClick,  this);
+        }
         
     },