From 29b29c6445589f1daaa50857f791b247b866195c Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 19 Aug 2014 16:36:20 +0800 Subject: [PATCH] Roo/bootstrap/Img.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Img.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Img.js b/Roo/bootstrap/Img.js index 1aec437671..cf0a9f1031 100644 --- a/Roo/bootstrap/Img.js +++ b/Roo/bootstrap/Img.js @@ -48,7 +48,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { var cfg = { tag: 'img', - cls: (this.imgResponsive) ? 'img-responsive' : '', + cls: (this.imgResponsive) ? 'img-responsive1' : '', html : null } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 7b7963d85a..0bba96bf36 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -980,7 +980,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, { var cfg = { tag: 'img', - cls: (this.imgResponsive) ? 'img-responsive' : '', + cls: (this.imgResponsive) ? 'img-responsive1' : '', html : null } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 10e1ff84d4..45fc1a6033 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -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-responsive':'',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-responsive1':'',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;}}); -- 2.39.2