You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jo...@apache.org on 2011/01/18 01:48:38 UTC
svn commit: r1060151 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Author: joshcanfield
Date: Tue Jan 18 00:48:38 2011
New Revision: 1060151
URL: http://svn.apache.org/viewvc?rev=1060151&view=rev
Log:
Fixed TAP5-1418 - added type="images" support to the submitting element functionality.
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1060151&r1=1060150&r2=1060151&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Tue Jan 18 00:48:38 2011
@@ -220,8 +220,10 @@ var Tapestry = {
* When a submit element is clicked, record the name of the element into
* the associated form. This is necessary for some Ajax processing, see
* TAPESTRY-2324.
+ *
+ * TAP5-1418: Added "type=image" so that they set the submitting element correctly.
*/
- $$("INPUT[type=submit]").each(function(element) {
+ $$("INPUT[type=submit]","INPUT[type=image]").each(function(element) {
var t = $T(element);
if (!t.trackingClicks) {