[richfaces-svn-commits] JBoss Rich Faces SVN: r11874 - trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Dec 18 09:56:23 EST 2008
Author: nbelaevski
Date: 2008-12-18 09:56:23 -0500 (Thu, 18 Dec 2008)
New Revision: 11874
Modified:
trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
Log:
https://jira.jboss.org/jira/browse/RF-5264
Modified: trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js
===================================================================
--- trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-12-18 14:55:56 UTC (rev 11873)
+++ trunk/ui/progressBAR/src/main/resources/org/richfaces/renderkit/html/js/progressBar.js 2008-12-18 14:56:23 UTC (rev 11874)
@@ -174,8 +174,11 @@
var value = parseFloat(v);
if (value > min && value < max) {
return (100*(value - min))/(max - min);
+ } else if (value <= min) {
+ return 0;
+ } else if (value >= max) {
+ return 100;
}
- return value;
},
setValue: function (ev, val) {
val = this.getParameter(ev, val, "value");
More information about the richfaces-svn-commits
mailing list