Roo/bootstrap/ComboBox.js
authorjohn <john@roojs.com>
Thu, 7 Dec 2017 03:34:11 +0000 (11:34 +0800)
committerjohn <john@roojs.com>
Thu, 7 Dec 2017 03:34:11 +0000 (11:34 +0800)
Roo/bootstrap/ComboBox.js

index c34ee79..bb5f5f0 100644 (file)
@@ -607,14 +607,14 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
                             tag: 'label',
                             //cls : 'input-group-addon',
                             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 : 'i',
+                                    cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',
+                                    tooltip : 'This field is required'
+                                }
+                            ]
+                        }
                         
                         combobox
 
@@ -2329,16 +2329,18 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         if (align ==='left' && this.fieldLabel.length) {
 
             cfg.cn = [
-                {
-                   tag : 'i',
-                   cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',
-                   tooltip : 'This field is required'
-                },
+                
                 {
                     tag: 'label',
                     cls : 'control-label',
                     html : this.fieldLabel
-
+                    cn : [
+                        {
+                           tag : 'i',
+                           cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',
+                           tooltip : 'This field is required'
+                        }
+                    ]
                 },
                 {
                     cls : '',