projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb414a2
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:47:58 +0000
(15:47 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:47:58 +0000
(15:47 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
784da6d
..
01f3ca4
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-217,8
+217,15
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, {
data : data,
html : false,
- items : footer
+ items : footer,
+ initEvents : function() {
+ Roo.bootstrap.Card.prototype.initEvents.call(this);
+ this.imgEl = this.el.select('card-img-top').first();
+ this.imgEl.on('click', function() { t.previewCard( data.id); }, this);
+ this.imgEl.set('pointer','curspr');
+
+ }
}
);