You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/08/22 14:37:16 UTC

git commit: WICKET-4725 DatePicker doesn't send 'change' event to the input field

Updated Branches:
  refs/heads/master 43878fc8c -> df2b332ee


WICKET-4725 DatePicker doesn't send 'change' event to the input field


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/df2b332e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/df2b332e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/df2b332e

Branch: refs/heads/master
Commit: df2b332ee7197a6566967412cc8e4faeeed36a19
Parents: 43878fc
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Aug 22 15:36:04 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Aug 22 15:36:04 2012 +0300

----------------------------------------------------------------------
 .../wicket/extensions/yui/calendar/wicket-date.js  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/df2b332e/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
----------------------------------------------------------------------
diff --git a/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js b/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
index 96bcc85..3209313 100644
--- a/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
+++ b/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/wicket-date.js
@@ -287,6 +287,7 @@
 					if (field.onchange) {
 						field.onchange();
 					}
+					jQuery('#'+cfg.componentId).trigger('change'); // TODO find YUI2 API for that
 				}
 			}
 		}