You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/02/07 19:16:45 UTC

svn commit: r619539 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Author: knopp
Date: Thu Feb  7 10:16:33 2008
New Revision: 619539

URL: http://svn.apache.org/viewvc?rev=619539&view=rev
Log:
FF3 fix

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=619539&r1=619538&r2=619539&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js Thu Feb  7 10:16:33 2008
@@ -934,6 +934,12 @@
 						    }
 					    }
 					    calculatedRedirect += "/" + redirectUrl;
+					    
+					    if (Wicket.Browser.isGecko()) {					    
+					    	// firefox 3 has problem with window.location setting relative url
+					    	calculatedRedirect = window.location.protocol + "//" + window.location.host + calculatedRedirect;					    	
+					    }
+					    
 					    window.location = calculatedRedirect;
 					}
 				}
@@ -1348,19 +1354,15 @@
 				
 			// create stylesheet
 			if (Wicket.Browser.isIE()) {
-			   try
-			   {
+				try  {
 					document.createStyleSheet().cssText = content;
 				}
-				catch(ignore)
-				{
+				catch(ignore) {
 					var run = function() {
-						try
-						{
+						try {
 							document.createStyleSheet().cssText = content;
 						}
-						catch(e)
-						{
+						catch(e) {
 							Wicket.Log.error(e);
 						}
 					}