Roo/bootstrap/DocumentManager.js
authoredward <edward@roojs.com>
Tue, 16 Feb 2016 03:54:06 +0000 (11:54 +0800)
committeredward <edward@roojs.com>
Tue, 16 Feb 2016 03:54:06 +0000 (11:54 +0800)
Roo/bootstrap/DocumentManager.js

index 09a768b..1948d2f 100644 (file)
@@ -56,6 +56,8 @@ Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component,  {
         this.fileEl.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block';
         this.fileEl.hide();
         
+        this.fileEl.on('change', this.onSelectFile, this);
+        
         this.uploadBtn = this.el.select('.roo-document-manager-upload-btn', true).first();
         this.uploadBtn.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block';