projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2545a1d
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:44:24 +0000
(15:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 20 Nov 2020 07:44:24 +0000
(15:44 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
0978a3b
..
b4fed76
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-23,7
+23,7
@@
Roo.bootstrap.CardUploader = function(config){
Roo.bootstrap.CardUploader.superclass.constructor.call(this, config);
Roo.bootstrap.CardUploader.superclass.constructor.call(this, config);
- this.imageCollection = new Roo.util.MixedCollection(function(r) { return r.id });
+ this.imageCollection = new Roo.util.MixedCollection(function(r) { return r.
data.
id });
};
};
@@
-156,7
+156,7
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, {
// hidden input element?
// if the file is not an image...
//then we need to use something other that and header_image
// hidden input element?
// if the file is not an image...
//then we need to use something other that and header_image
-
+ var t = this;
// remove.....
var footer = [
{
// remove.....
var footer = [
{
@@
-179,7
+179,7
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, {
fa : 'download',
listeners : {
click : function() {
fa : 'download',
listeners : {
click : function() {
- // download
+ this.removeEl(data.id)
}
}
},
}
}
},