From cabfec5a281fd22d30320cfee4005bbc7e55127d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 20 Nov 2020 15:44:24 +0800 Subject: [PATCH] Roo/bootstrap/CardUploader.js --- Roo/bootstrap/CardUploader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } } }, -- 2.39.2