Author: nbelaevski
Date: 2008-09-02 11:44:05 -0400 (Tue, 02 Sep 2008)
New Revision: 10275
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
Log:
https://jira.jboss.org/jira/browse/RF-4373
Modified:
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js
===================================================================
---
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-09-02
15:15:59 UTC (rev 10274)
+++
trunk/ui/inputnumber-slider/src/main/resources/org/richfaces/renderkit/html/script/SliderScript.js 2008-09-02
15:44:05 UTC (rev 10275)
@@ -391,7 +391,9 @@
if (e.keyCode == 13) {
if (this.required || "" != this.input.value)
this.input.value=this.getNearestValue(this.value);
- this.input.form.submit();
+ if (this.input.form) {
+ this.input.form.submit();
+ }
}
if (this.eventChanged && this.isValueChanged()){
this.eventChanged(e);
Modified:
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js
===================================================================
---
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2008-09-02
15:15:59 UTC (rev 10274)
+++
trunk/ui/inputnumber-spinner/src/main/resources/org/richfaces/renderkit/html/script/SpinnerScript.js 2008-09-02
15:44:05 UTC (rev 10275)
@@ -311,7 +311,9 @@
if (e.keyCode == 13){
if (this.spinner.required || "" != this.edit.value)
this.edit.value = this.getValidValue(this.edit.value);
- this.edit.form.submit();
+ if (this.edit.form) {
+ this.edit.form.submit();
+ }
}
},