projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3ba930
)
Roo/bootstrap/Img.js
author
edward
<edward@roojs.com>
Wed, 13 Jan 2016 03:26:51 +0000
(11:26 +0800)
committer
edward
<edward@roojs.com>
Wed, 13 Jan 2016 03:26:51 +0000
(11:26 +0800)
Roo/bootstrap/Img.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Img.js
b/Roo/bootstrap/Img.js
index
398b59f
..
9a42d27
100644
(file)
--- a/
Roo/bootstrap/Img.js
+++ b/
Roo/bootstrap/Img.js
@@
-64,10
+64,12
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
cn: []
}
- var img = {};
-
- if(this.xsUrl){
- img = {
+ Roo.each([this.xsUrl, this.smUrl, this.mdUrl, this.lgUrl], function(url){
+ if(!url){
+ return;
+ }
+
+ var img = {
tag: 'img',
cls: (this.imgResponsive) ? 'img-responsive' : '',
html: this.html || cfg.html,
@@
-97,8
+99,9
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
}
cfg.cn.push((this.href) ? a : img);
-
- }
+
+ });
+
},