Author: andrei_exadel
Date: 2008-02-22 11:58:16 -0500 (Fri, 22 Feb 2008)
New Revision: 6309
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
fix JS errors
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-22
16:55:49 UTC (rev 6308)
+++
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-22
16:58:16 UTC (rev 6309)
@@ -387,7 +387,6 @@
this.stopScript = stopScript;
this.getFileSizeScript = getFileSizeScript;
- this.iframe = this.createFrame();//$(this.id + "_iframe");
this.items = $(this.id + ":fileItems");
this.classes = classes;
this.events = events;
@@ -528,7 +527,7 @@
}
},
- _upload() {
+ _upload: function() {
this.runUpload = true;
if (!this.activeEntry) {
@@ -539,7 +538,7 @@
entry.upload();
}
}
- }
+ },
stop: function() {
if (this.disabled) return;
@@ -803,7 +802,7 @@
}
if (!parentForm.onsubmit || parentForm.onsubmit()) {
- var iframe = this.iframe;
+ var iframe = this.createFrame();
new LoadWatcher(iframe, function(newState) {
this.finishProgressBar();
this.setState(newState);