projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffdcb36
)
Roo/bootstrap/Img.js
author
Edward
<edward@roojs.com>
Fri, 21 Mar 2014 05:25:39 +0000
(13:25 +0800)
committer
Edward
<edward@roojs.com>
Fri, 21 Mar 2014 05:25:39 +0000
(13:25 +0800)
Roo/bootstrap/Img.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Img.js
b/Roo/bootstrap/Img.js
index
f594b2b
..
ae9df5e
100644
(file)
--- a/
Roo/bootstrap/Img.js
+++ b/
Roo/bootstrap/Img.js
@@
-49,21
+49,6
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
html : null
}
- if(this.href){
- cfg = {
- tag: 'a',
- href: this.href,
- cn: [
- {
- tag: 'img',
- cls: 'img-responsive',
- html : null
- }
- ]
- }
-
- }
-
cfg.html = this.html || cfg.html;
cfg.src = this.src || cfg.src;
@@
-76,7
+61,18
@@
Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component, {
cfg.alt = this.alt;
}
- return cfg;
+ if(this.href){
+ var a = {
+ tag: 'a',
+ href: this.href,
+ cn: [
+ cfg
+ ]
+ }
+ }
+
+
+ return (this.href) ? a : cfg;
},
initEvents: function() {