projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5a503a
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2020 09:35:40 +0000
(17:35 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2020 09:35:40 +0000
(17:35 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
082b46f
..
3eaafc0
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-193,6
+193,7
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
title : file.name,
mimetype : file.type,
preview : false,
title : file.name,
mimetype : file.type,
preview : false,
+ is_deleted : 0
})
},
})
},
@@
-289,7
+290,8
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
{
var card = this.fileCollection.get(id);
{
var card = this.fileCollection.get(id);
- card.data.is_deleted : 1,
+ card.data.is_deleted = 1;
+ card.data.src = ''; /// delete the source - so it reduces size of not uploaded images etc.
this.fileCollection.remove(card);
//this.items = this.items.filter(function(e) { return e != card });
// dont' really need ot update items.
this.fileCollection.remove(card);
//this.items = this.items.filter(function(e) { return e != card });
// dont' really need ot update items.