Roo/bootstrap/Img.js
authorJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:21:26 +0000 (18:21 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:21:26 +0000 (18:21 +0800)
Roo/bootstrap/Img.js

index 317ef26..ae1811f 100644 (file)
@@ -28,6 +28,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
     
     imgResponsive: true,
     border: '',
+    src: '',
     
     autoCreate : {
         cls: 'img-responsive',
@@ -40,6 +41,8 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         
         cfg.html = this.html || cfg.html;
         
+        cfg.src=this.src||cfg.src;
+        
         return cfg;
     }