X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FCardUploader.js;h=840bd89edce0e879d5c0abf43286be8e88a57ba4;hb=061afa34d34543891abc0ef5c3dfe89e915d2ec4;hp=b6a0f39909b45952905c9c0641895fcdfe47b288;hpb=e141a89d8a5d0cabbb72a1b22dd1b6ed44197e18;p=roojs1 diff --git a/Roo/bootstrap/CardUploader.js b/Roo/bootstrap/CardUploader.js index b6a0f39909..840bd89edc 100644 --- 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); }, @@ -288,9 +289,14 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Input, { 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); + }, + updateInput : function() + { + this.fileCo }