projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce03c7
)
Roo/bootstrap/Img.js
author
edward
<edward@roojs.com>
Thu, 2 Nov 2017 10:55:51 +0000
(18:55 +0800)
committer
edward
<edward@roojs.com>
Thu, 2 Nov 2017 10:55:51 +0000
(18:55 +0800)
Roo/bootstrap/Img.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Img.js
b/Roo/bootstrap/Img.js
index
98faf30
..
9e32c01
100644
(file)
--- a/
Roo/bootstrap/Img.js
+++ b/
Roo/bootstrap/Img.js
@@
-177,7
+177,13
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
setSrc : function(url)
{
this.src = url;
- this.el.dom.src = url;
+
+ if(this.src || (!this.xsUrl && !this.smUrl && !this.mdUrl && !this.lgUrl)){
+ this.el.dom.src = url;
+ return;
+ }
+
+ this.el.select('img', true).first().dom.src = url;
}