incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r452214 - /incubator/xap/trunk/src/xap/util/LogFactory.js
Date Mon, 02 Oct 2006 21:15:49 GMT
Author: jmargaris
Date: Mon Oct  2 14:15:48 2006
New Revision: 452214

URL: http://svn.apache.org/viewvc?view=rev&rev=452214
Log:
fixed bug where main window got focus again every time message 
was logged

Modified:
    incubator/xap/trunk/src/xap/util/LogFactory.js

Modified: incubator/xap/trunk/src/xap/util/LogFactory.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/util/LogFactory.js?view=diff&rev=452214&r1=452213&r2=452214
==============================================================================
--- incubator/xap/trunk/src/xap/util/LogFactory.js (original)
+++ incubator/xap/trunk/src/xap/util/LogFactory.js Mon Oct  2 14:15:48 2006
@@ -132,6 +132,9 @@
 			xap.util.LogFactory.ConsoleLog.s_logWindow.document.open();
 			xap.util.LogFactory.ConsoleLog.s_logWindow.document.writeln("<head><title>Log</title></head><body><div
id=\"log\"/></body>" );
 			xap.util.LogFactory.ConsoleLog.s_logWindow.document.close();
+			
+			var opener = xap.util.LogFactory.ConsoleLog.s_logWindow.opener;
+			if (opener && opener.focus) {opener.focus();}
 		}
 		
 		if (!xap.util.LogFactory.ConsoleLog.s_logWindow || xap.util.LogFactory.ConsoleLog.s_logWindow.closed)
return;
@@ -147,11 +150,6 @@
 		p.appendChild(consoleDoc.createTextNode(output));
 		
 		log.appendChild(p);
-		
-		var opener = xap.util.LogFactory.ConsoleLog.s_logWindow.opener;
-		if (opener && opener.focus) {opener.focus();}
-		
-
 	}
 }
 



Mime
View raw message