Hi,
this is my first T5 patch. Please correct me if submission here is wrong.
It is for my issue TAP5-1844 and adds an "onchange" event to the
datepicker component.
Index:
tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/datefield.js
===================================================================
---
tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/datefield.js
(Revision 1299618)
+++
tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/datefield.js
(Arbeitskopie)
@@ -114,7 +114,10 @@
var date = this.datePicker.getDate();
var resultHandler = function(result) {
- this.field.value = result;
+ if (this.field.value != result) {
+ this.field.value = result;
+ if (this.field.onchange) this.field.onchange();
+ }
this.hidePopup();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org