Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x 622f1b069 -> 3ce9f61b2


WICKET-5517 Added support for detection of IE11 in Wicket.Browser.isIE()


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/a8fcba33
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/a8fcba33
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/a8fcba33

Branch: refs/heads/wicket-6.x
Commit: a8fcba33b2ae33ccadfd6885ac05812143cbd5c9
Parents: dfd1218
Author: Luke Niesink <luke.nies...@topicus.nl>
Authored: Tue Feb 25 16:15:06 2014 +0100
Committer: Luke Niesink <luke.nies...@topicus.nl>
Committed: Tue Feb 25 16:15:06 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/a8fcba33/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
index 76c8091..15639a8 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
+++ 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
@@ -53,7 +53,7 @@
                        },
 
                        isIE: function () {
-                               return !Wicket.Browser.isSafari() && 
typeof(document.all) !== "undefined" && typeof(window.opera) === "undefined";
+                               return !Wicket.Browser.isSafari() && 
(typeof(document.all) !== "undefined" || 
window.navigator.userAgent.indexOf("Trident/")>-1) && typeof(window.opera) === 
"undefined";
                        },
 
                        isIEQuirks: function () {
@@ -78,6 +78,10 @@
                                var version = 
parseFloat(window.navigator.userAgent.substring(index + 5));
                                return Wicket.Browser.isIE() && version < 9;
                        },
+                       
+                       isIELessThan11: function () {
+                               return !Wicket.Browser.isSafari() && 
typeof(document.all) !== "undefined" && typeof(window.opera) === "undefined";
+                       },
 
                        isIE11: function () {
                                var userAgent = window.navigator.userAgent;

Reply via email to