projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd1a515
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:48:22 +0000
(15:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:48:22 +0000
(15:48 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
01f3ca4
..
74fd074
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-221,9
+221,12
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, {
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');
+ if (this.imgEl) {
+ this.imgEl.on('click', function() { t.previewCard( data.id); }, this);
+ this.imgEl.set('pointer','curspr');
+ }
+
}