Roo/bootstrap/Input.js
authorjohn <john@roojs.com>
Fri, 9 Mar 2018 05:35:19 +0000 (13:35 +0800)
committerjohn <john@roojs.com>
Fri, 9 Mar 2018 05:35:19 +0000 (13:35 +0800)
Roo/bootstrap/Input.js

index 6798723..16fc8ad 100644 (file)
@@ -415,13 +415,17 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
                         tag: 'label',
                         'for' :  id,
                         cls : 'control-label',
-                        html : this.fieldLabel
-
-                    },
-                    {
-                        tag : 'i',
-                        cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
-                        tooltip : 'This field is required'
+                        cn : [
+                            {
+                                tag : 'span',
+                                html : this.fieldLabel
+                            },
+                            {
+                                tag : 'i',
+                                cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+                                tooltip : 'This field is required'
+                            }
+                        ]
                     },
                     {
                         cls : "",
@@ -433,7 +437,7 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
                 ];
                 
                 labelCfg = cfg.cn[0];
-                contentCfg = cfg.cn[2];
+                contentCfg = cfg.cn[1];
             
             }