Roo/bootstrap/Input.js
authorEdward <edward@roojs.com>
Wed, 10 Sep 2014 07:11:04 +0000 (15:11 +0800)
committerEdward <edward@roojs.com>
Wed, 10 Sep 2014 07:11:04 +0000 (15:11 +0800)
Roo/bootstrap/Input.js

index ccad621..9259ec4 100644 (file)
@@ -271,13 +271,22 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             Roo.log('before!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1');
             Roo.log(this.before);
             Roo.log(typeof(this.before));
-            if (this.before) {
+            if (this.before && typeof(this.before) != 'object') {
                 inputblock.cn.push({
                     tag :'span',
                     cls : 'input-group-addon',
                     html : this.before
                 });
             }
+            
+            if (this.before && typeof(this.before) == 'object') {
+                inputblock.cn.push({
+                    tag :'span',
+                    cls : 'input-group-addon',
+                    html : this.before
+                });
+            }
+            
             inputblock.cn.push(input);
             if (this.after) {
                 inputblock.cn.push({