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 2007/11/04 17:21:32 UTC

svn commit: r591799 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js

Author: knopp
Date: Sun Nov  4 08:21:31 2007
New Revision: 591799

URL: http://svn.apache.org/viewvc?rev=591799&view=rev
Log:
Added convenience method for IE<7

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js?rev=591799&r1=591798&r2=591799&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js Sun Nov  4 08:21:31 2007
@@ -64,6 +64,12 @@
 		return Wicket.Browser.isIE() && document.documentElement.clientHeight == 0;
 	},		
 	
+	isIELessThan7: function() {
+		var index = navigator.userAgent.indexOf("MSIE");
+		var version = parseFloat(navigator.userAgent.substring(index + 5));
+		return Wicket.Browser.isIE() && version < 7;
+	},
+	
 	isIE7: function() {
 		var index = navigator.userAgent.indexOf("MSIE");
 		var version = parseFloat(navigator.userAgent.substring(index + 5));