Author: nbelaevski
Date: 2009-03-19 12:10:12 -0400 (Thu, 19 Mar 2009)
New Revision: 13031
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-6266
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 2009-03-19
14:40:35 UTC (rev 13030)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-03-19
16:10:12 UTC (rev 13031)
@@ -570,17 +570,19 @@
},
getFileSize: function (data) {
- if (!this.labelMarkup) return;
- if (data) {
- var progressData = new ProgressData(data);
- this.progressData = progressData;
- if (this.activeEntry) {
- this.activeEntry.setupLabelUpdate();
+ if (data) {
+ if (this.labelMarkup) {
+ var progressData = new ProgressData(data);
+ this.progressData = progressData;
+ if (this.activeEntry) {
+ this.activeEntry.setupLabelUpdate();
+ }
+ }
+ }else {
+ if (this.activeEntry) {
+ this.getFileSizeScript(this.activeEntry.uid, this.formId);
+ }
}
- }else {
- if (this.activeEntry)
- this.getFileSizeScript(this.activeEntry.uid, this.formId);
- }
},
prepareProgressBar: function () {