Author: amarkhel
Date: 2009-06-25 10:09:04 -0400 (Thu, 25 Jun 2009)
New Revision: 14724
Modified:
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Fix RF-7359
Modified:
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-06-25
14:08:27 UTC (rev 14723)
+++
branches/community/3.3.X/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-06-25
14:09:04 UTC (rev 14724)
@@ -240,15 +240,27 @@
},
ss: function () {
- return parseInt((this.time - this.startTime) % 60) + "";
+ var seconds = parseInt((this.time - this.startTime) % 60);
+ if(seconds < 10){
+ return "0" + seconds;
+ }
+ return seconds + "";
},
mm: function () {
- return parseInt((this.time - this.startTime)/60)+ "";
+ var minutes = parseInt((this.time - this.startTime)/60);
+ if(minutes < 10){
+ return "0" + minutes;
+ }
+ return minutes + "";
},
hh: function () {
- return parseInt((this.time - this.startTime)/3600) + "";
+ var hours = parseInt((this.time - this.startTime)/3600);
+ if(hours < 10){
+ return "0" + hours;
+ }
+ return hours + "";
},
B: function () {
Show replies by date