Roo/bootstrap/DocumentManager.js
authoredward <edward@roojs.com>
Thu, 3 Mar 2016 06:01:19 +0000 (14:01 +0800)
committeredward <edward@roojs.com>
Thu, 3 Mar 2016 06:01:19 +0000 (14:01 +0800)
Roo/bootstrap/DocumentManager.js

index bf35312..2b1caa0 100644 (file)
@@ -574,7 +574,7 @@ Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component,  {
 
         var image = previewEl.select('img', true).first();
         Roo.log(image);
-        image.addEventListener("load", function(){ _this.onPreviewLoad(image); });
+        image.dom.addEventListener("load", function(){ _this.onPreviewLoad(image); });
         
         image.on('click', this.onClick, this, file);