}
];
-
+
var cn = this.addxtype(
{
// dont' really need ot update items.
// this.items.push(cn);
this.fileCollection.add(cn);
- this.updateInput();
+
+ var _t = this;
+ var reader = new FileReader();
+ reader.onloadend = function(evt) {
+ data.srcdata = evt.target.result;
+ _t.updateInput();
+ };
+ reader.readAsDataURL(data.src);
+
+
},
removeCard : function(id)