roojs-bootstrap.js
authoredward <edward@roojs.com>
Wed, 13 Jan 2016 03:36:28 +0000 (11:36 +0800)
committeredward <edward@roojs.com>
Wed, 13 Jan 2016 03:36:28 +0000 (11:36 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 8081670..3331fbb 100644 (file)
@@ -1374,6 +1374,8 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
             cn: []
         }
         Roo.log('run?????????????????????');
+        Roo.log(this.lgUrl);
+        
         Roo.each(['xsUrl', 'smUrl', 'mdUrl', 'lgUrl'], function(size){
             Roo.log(size);
             Roo.log(this[size]);
index 9598889..3c80f7e 100644 (file)
@@ -37,7 +37,7 @@ A.dom.innerHTML=v;},getTitle:function(){var A=this.titleEl();if(!A){return '';}r
 t.dom.innerHTML=v;}});
 //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,xsUrl:'',smUrl:'',mdUrl:'',lgUrl:'',getAutoCreate:function(){if(this.src||(!this.xsUrl&&!this.smUrl&&!this.mdUrl&&!this.lgUrl)){return this.createSingleImg();}var A={tag:'div',cls:'roo-image-responsive-group',cn:[]}
-Roo.log('run?????????????????????');Roo.each(['xsUrl','smUrl','mdUrl','lgUrl'],function(B){Roo.log(B);Roo.log(this[B]);if(!this[B]){return;}var C={tag:'img',cls:(this.imgResponsive)?'img-responsive':'',html:this.html||A.html,src:this[B]}
+Roo.log('run?????????????????????');Roo.log(this.lgUrl);Roo.each(['xsUrl','smUrl','mdUrl','lgUrl'],function(B){Roo.log(B);Roo.log(this[B]);if(!this[B]){return;}var C={tag:'img',cls:(this.imgResponsive)?'img-responsive':'',html:this.html||A.html,src:this[B]}
 C.cls+=' roo-image-responsive-'+B;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:[C]};if(this.target){a.target=this.target;}}
 A.cn.push((this.href)?a:C);});return A;},createSingleImg: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);}});