Author: andrei_exadel
Date: 2008-09-16 05:58:39 -0400 (Tue, 16 Sep 2008)
New Revision: 10445
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-4480
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-09-15
22:55:22 UTC (rev 10444)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-09-16
09:58:39 UTC (rev 10445)
@@ -480,12 +480,10 @@
if (p.getWidth() != 0) {
o.parentNode.style.width = p.getWidth() + "px";
o.parentNode.style.height = p.getHeight() + "px";
- if (p._onmouseover) {
- p.onmouseover = p._onmouseover;
- }
+ Event.stopObserving(p,'mouseover', this.inputHandler);
}else {
- p._onmouseover = p.onmouseover;
- p.onmouseover = function () {this.initFileInput(); p._onmouseover(); }.bind(this);
+ this.inputHandler = this.initFileInput.bindAsEventListener(this);
+ Event.observe(p,'mouseover', this.inputHandler);
}
},
Show replies by date