cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r326906 - /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js
Date Thu, 20 Oct 2005 14:05:43 GMT
Author: sylvain
Date: Thu Oct 20 07:05:39 2005
New Revision: 326906

URL: http://svn.apache.org/viewcvs?rev=326906&view=rev
Log:
Display waiting cursor only for Ajax requests

Modified:
    cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js

Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js?rev=326906&r1=326905&r2=326906&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js (original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js Thu Oct
20 07:05:39 2005
@@ -56,9 +56,6 @@
         // FIXME: programmatically submitting the form doesn't trigger onsubmit ? (both in
IE and Moz)
         forms_onsubmit();
         
-        // Provide feedback that something is happening.
-        document.body.style.cursor = "wait";
-        
         var req = this.ajax && cocoon.ajax.newXMLHttpRequest();
         if (req) {
             var query = this._buildQueryString(form, name);
@@ -66,6 +63,9 @@
                 // Some inputs are not ajax-compatible. Fall back to full page reload
                 form.submit();
             }
+
+            // Provide feedback that something is happening.
+            document.body.style.cursor = "wait";
 
             // The "ajax-action" attribute specifies an alternate submit location used in
Ajax mode.
             // This allows to use Ajax in the portal where forms are normally posted to the
portal URL.



Mime
View raw message