Author: andrei_exadel
Date: 2008-03-25 12:23:48 -0400 (Tue, 25 Mar 2008)
New Revision: 7206
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
fix xhtml bugs
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-03-25
16:19:50 UTC (rev 7205)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-25
16:23:48 UTC (rev 7206)
@@ -414,8 +414,8 @@
this.checkFrame();
this.initFileEntryWidth();
this.initLabels(labels);
+ this.processButtons();
this.initFileInput();
- this.processButtons();
},
initLabels: function (labels) {
@@ -427,12 +427,12 @@
},
initFileInput: function () {
- var o = this.currentInput.parentNode;
- var p = o.parentNode;
+ var o = this.currentInput;
+ var p = o.parentNode.parentNode;
p = $(p);
if (p.getWidth() != 0) {
- o.style.width = p.getWidth() + "px";
- o.style.height = p.getHeight() + "px";
+ o.parentNode.style.width = p.getWidth() + "px";
+ o.parentNode.style.height = p.getHeight() + "px";
if (p._onmouseover) {
p.onmouseover = p._onmouseover;
}
Show replies by date