You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2008/07/15 12:23:28 UTC

svn commit: r676860 - /myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js

Author: imario
Date: Tue Jul 15 03:23:27 2008
New Revision: 676860

URL: http://svn.apache.org/viewvc?rev=676860&view=rev
Log:
make submitOnEvent work with input-type "button" too - required for
a4j:commandButton

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js?rev=676860&r1=676859&r2=676860&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/submitOnEvent/resource/submitOnEvent.js Tue Jul 15 03:23:27 2008
@@ -259,7 +259,8 @@
         return false;
     }
     else if (clickComponent.type
-        && (clickComponent.type.toLowerCase() == "submit" || clickComponent.type.toLowerCase() == "image"))
+        && (clickComponent.type.toLowerCase() == "submit" || clickComponent.type.toLowerCase() == "image"
+            || clickComponent.type.toLowerCase() == "button"))
     {
         orgApacheMyfacesSubmitOnEventClickButton(clickComponent);
         return false;