projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roo/bootstrap/CardUploader.js
[roojs1]
/
Roo
/
bootstrap
/
CardUploader.js
diff --git
a/Roo/bootstrap/CardUploader.js
b/Roo/bootstrap/CardUploader.js
index
840bd89
..
21dee55
100644
(file)
--- a/
Roo/bootstrap/CardUploader.js
+++ b/
Roo/bootstrap/CardUploader.js
@@
-280,7
+280,7
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
}
);
// dont' really need ot update items.
}
);
// dont' really need ot update items.
- //this.items.push(cn);
+ //
this.items.push(cn);
this.fileCollection.add(cn);
},
this.fileCollection.add(cn);
},
@@
-294,9
+294,21
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, {
card.el.dom.parentNode.removeChild(card.el.dom);
},
card.el.dom.parentNode.removeChild(card.el.dom);
},
+ reset: function()
+ {
+ this.fileCollection.each(function(card) {
+ card.el.dom.parentNode.removeChild(card.el.dom);
+ });
+ this.inputEl().dom.value = '[]';
+ },
+
updateInput : function()
{
updateInput : function()
{
- this.fileCo
+ var data = [];
+ this.fileCollection.each(function(e) {
+ data.push(e.data);
+ });
+ this.inputEl().dom.value = JSON.stringify(data);
}
}