projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
807f75a
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 08:44:38 +0000
(16:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 08:44:38 +0000
(16:44 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
1ce27b2
..
12b4601
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-288,9
+288,10
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
items : footer,
initEvents : function() {
Roo.bootstrap.Card.prototype.initEvents.call(this);
+ var card = this;
this.imgEl = this.el.select('.card-img-top').first();
if (this.imgEl) {
- this.imgEl.on('click', function() { t.
previewCard( data.id
); }, this);
+ this.imgEl.on('click', function() { t.
fireEvent( "preview", t, card
); }, this);
this.imgEl.set({ 'pointer' : 'cursor' });
}