projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e141a89
)
Roo/bootstrap/CardUploader.js
author
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2020 08:22:55 +0000
(16:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 25 Nov 2020 08:22:55 +0000
(16:22 +0800)
Roo/bootstrap/CardUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
b6a0f39
..
840bd89
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-279,7
+279,8
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
}
);
}
);
- this.items.push(cn);
+ // dont' really need ot update items.
+ //this.items.push(cn);
this.fileCollection.add(cn);
},
this.fileCollection.add(cn);
},
@@
-288,9
+289,14
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
var card = this.fileCollection.get(id);
this.fileCollection.remove(card);
var card = this.fileCollection.get(id);
this.fileCollection.remove(card);
- this.items = this.items.filter(function(e) { return e != card });
+ //this.items = this.items.filter(function(e) { return e != card });
+ // dont' really need ot update items.
card.el.dom.parentNode.removeChild(card.el.dom);
card.el.dom.parentNode.removeChild(card.el.dom);
+ },
+ updateInput : function()
+ {
+ this.fileCo
}
}