From a2cd9708f66b05a0825e9b8bc6c65a21d1a2b5a0 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 10 Nov 2015 14:05:05 +0100 Subject: Set "ie" CSS class for IE10, IE11 Fixed border in file action menu --- core/js/js.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/js') diff --git a/core/js/js.js b/core/js/js.js index 460f65256a9..07320a1d225 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1236,6 +1236,14 @@ function initCore() { */ moment.locale(OC.getLocale()); + if ($.browser.msie || !!navigator.userAgent.match(/Trident\/7\./)) { + // for IE10+ that don't have conditional comments + // and IE11 doesn't identify as MSIE any more... + $('html').addClass('ie'); + } else if (!!navigator.userAgent.match(/Edge\/12/)) { + // for edge + $('html').addClass('edge'); + } /** * Calls the server periodically to ensure that session doesn't -- cgit v1.2.3