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 2011/01/11 16:09:08 UTC

svn commit: r1057684 - /wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java

Author: mgrigorov
Date: Tue Jan 11 15:09:07 2011
New Revision: 1057684

URL: http://svn.apache.org/viewvc?rev=1057684&view=rev
Log:
WICKET-3321 Ajax submit link does not show busy indicator under IE

Bind the precondition function for the indicator showing. This way the submitting element can be checked whether it is part of the current DOM document after Ajax refresh.


Modified:
    wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java

Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java?rev=1057684&r1=1057683&r2=1057684&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.java Tue Jan 11 15:09:07 2011
@@ -232,7 +232,9 @@ public abstract class AbstractDefaultAja
 				"if (");
 			if (precondition != null)
 			{
-				indicatorWithPrecondition.append("function(){").append(precondition).append("}()");
+				indicatorWithPrecondition.append("function(){")
+					.append(precondition)
+					.append("}.bind(this)()");
 			}
 			else
 			{