X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FCardUploader.js;h=b4fed760c89a04ab32d879efdb8873c9070bc005;hb=cabfec5a281fd22d30320cfee4005bbc7e55127d;hp=0978a3b73be9bbb4fabcf2e8c72a406b9e094204;hpb=2545a1d12d8b675fc15e495451735a956e0ab6b7;p=roojs1 diff --git a/Roo/bootstrap/CardUploader.js b/Roo/bootstrap/CardUploader.js index 0978a3b73b..b4fed760c8 100644 --- 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); - 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 - + var t = this; // remove..... var footer = [ { @@ -179,7 +179,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, { fa : 'download', listeners : { click : function() { - // download + this.removeEl(data.id) } } },