You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gm...@apache.org on 2007/08/27 17:34:42 UTC

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

Author: gmuellan
Date: Mon Aug 27 08:34:41 2007
New Revision: 570157

URL: http://svn.apache.org/viewvc?rev=570157&view=rev
Log:
ie backward compatibility for onsubmit() clause

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

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js?rev=570157&r1=570156&r2=570157&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js Mon Aug 27 08:34:41 2007
@@ -133,7 +133,7 @@
         var origOnsubmit = form.onsubmit;
         form.onsubmit = function()
         {
-            if(typeof origOnsubmit != "undefined")
+            if(null != origOnsubmit && typeof origOnsubmit != "undefined")
             {
                var doSubmit = origOnsubmit();
                if(doSubmit || typeof doSubmit == "undefined")