Roo/bootstrap/Img.js
authorEdward <edward@roojs.com>
Tue, 19 Aug 2014 08:36:46 +0000 (16:36 +0800)
committerEdward <edward@roojs.com>
Tue, 19 Aug 2014 08:36:46 +0000 (16:36 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/Img.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index cf0a9f1..1aec437 100644 (file)
@@ -48,7 +48,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         
         var cfg = {
             tag: 'img',
-            cls: (this.imgResponsive) ? 'img-responsive1' : '',
+            cls: (this.imgResponsive) ? 'img-responsive' : '',
             html : null
         }
         
index 0bba96b..7b7963d 100644 (file)
@@ -980,7 +980,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         
         var cfg = {
             tag: 'img',
-            cls: (this.imgResponsive) ? 'img-responsive1' : '',
+            cls: (this.imgResponsive) ? 'img-responsive' : '',
             html : null
         }
         
index 45fc1a6..10e1ff8 100644 (file)
@@ -26,7 +26,7 @@ Roo.bootstrap.Container=function(A){Roo.bootstrap.Container.superclass.construct
 A.cls+='bootstrap-sticky-'+this.sticky;}if(this.well.length){switch(this.well){case 'lg':case 'sm':A.cls+=' well well-'+this.well;break;default:A.cls+=' well';break;}}var B=A;if(this.panel.length){A.cls+=' panel panel-'+this.panel;A.cn=[];if(this.header.length){A.cn.push({cls:'panel-heading',cn:[{tag:'h3',cls:'panel-title',html:this.header}]});}
 B=false;A.cn.push({cls:'panel-body',html:this.html});if(this.footer.length){A.cn.push({cls:'panel-footer',html:this.footer});}}if(B){B.html=this.html||A.html;}if(!A.cls.length){A.cls='container';}return A;}});
 //Roo/bootstrap/Img.js
-Roo.bootstrap.Img=function(A){Roo.bootstrap.Img.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.Img,Roo.bootstrap.Component,{imgResponsive:true,border:'',src:'',href:false,target:false,getAutoCreate:function(){var A={tag:'img',cls:(this.imgResponsive)?'img-responsive1':'',html:null}
+Roo.bootstrap.Img=function(A){Roo.bootstrap.Img.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.Img,Roo.bootstrap.Component,{imgResponsive:true,border:'',src:'',href:false,target:false,getAutoCreate:function(){var A={tag:'img',cls:(this.imgResponsive)?'img-responsive':'',html:null}
 A.html=this.html||A.html;A.src=this.src||A.src;if(['rounded','circle','thumbnail'].indexOf(this.border)>-1){A.cls+=' img-'+this.border;}if(this.alt){A.alt=this.alt;}if(this.href){var a={tag:'a',href:this.href,cn:[A]};if(this.target){a.target=this.target;}}return (this.href)?a:A;},initEvents:function(){if(!this.href){this.el.on('click',this.onClick,this);}},onClick:function(e){Roo.log('img onclick');this.fireEvent('click',this,e);}});
 //Roo/bootstrap/Header.js
 Roo.bootstrap.Header=function(A){Roo.bootstrap.Header.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Header,Roo.bootstrap.Component,{html:false,level:1,getAutoCreate:function(){var A={tag:'h'+(1*this.level),html:this.html||'fill in html'};return A;}});