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/01/04 09:56:17 UTC

[2/2] git commit: WICKET-3367 Rewrite all JavaScript inline event handlers to be proper attached event handlers

WICKET-3367
Rewrite all JavaScript inline event handlers to be proper attached event handlers

Expose 'event' as a visible variable for processEvaluation() method. This way user's scripts can use the event that caused this Ajax call
Forgotten from the previous commit (5e7c2c1ac5923b3da56cea0a6680877c5bbfa988)


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

Branch: refs/heads/master
Commit: 0c506d01d8342cfddd87b9b93d51942e512edc66
Parents: 5e7c2c1
Author: martin-g <mg...@apache.org>
Authored: Wed Jan 4 10:14:23 2012 +0200
Committer: martin-g <mg...@apache.org>
Committed: Wed Jan 4 10:14:23 2012 +0200

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0c506d01/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index a86f391..92ae821 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -728,7 +728,7 @@
 						stepIndexOfLastReplacedComponent = steps.length;
 						this.processComponent(steps, node);
 					} else if (node.tagName === "evaluate") {
-						this.processEvaluation(steps, node, attrs);
+						this.processEvaluation(steps, node, attrs, attrs.event);
 					} else if (node.tagName === "header-contribution") {
 						this.processHeaderContribution(steps, node);
 					} else if (node.tagName === "redirect") {