Roo/bootstrap/CardUploader.js
authorAlan Knowles <alan@roojs.com>
Fri, 20 Nov 2020 06:22:15 +0000 (14:22 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 20 Nov 2020 06:22:15 +0000 (14:22 +0800)
Roo/bootstrap/CardUploader.js

index b268380..a663d26 100644 (file)
@@ -39,7 +39,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button,  {
     
     getAutoCreate : function()
     {
-        var btn = Roo.bootstrap.Button.getAutoCreate.prototype.call(this);
+        var btn = Roo.bootstrap.Button.prototype.getAutoCreate.call(this);
         
         var cfg = {
             cls : 'roo-card-uploader-wrap',
@@ -79,7 +79,7 @@ Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button,  {
          
         this.selectorEl = this.el.select('.roo-card-upload-selector', true).first();
         
-        this.bodyEl.on('click', this.beforeSelectFile, this);
+        this.el.on('click', this.beforeSelectFile, this);
         this.selectorEl.on('change', this.onFileSelected, this);
         if (this.images) {
             var t = this;