Author: nbelaevski
Date: 2008-09-05 11:22:56 -0400 (Fri, 05 Sep 2008)
New Revision: 10325
Modified:
branches/3.2.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
Log:
https://jira.jboss.org/jira/browse/RF-4373
Modified:
branches/3.2.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
---
branches/3.2.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-09-05
15:18:27 UTC (rev 10324)
+++
branches/3.2.x/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-09-05
15:22:56 UTC (rev 10325)
@@ -389,8 +389,10 @@
}
if (e.keyCode == 13) {
- if (this.required || "" != this.input.value)
- this.input.value=this.getNearestValue(this.value);
+ if (this.required || "" != this.input.value) {
+ this.setValue(Number(this.value));
+ this.input.value = this.value;
+ }
if (this.input.form) {
this.input.form.submit();
}