From bf420e07b6a8ed6d0a42cdaef5f3f70ad58ce7fc Mon Sep 17 00:00:00 2001 From: marknl <marknl@ispconfig3> Date: Fri, 26 Aug 2011 09:17:19 -0400 Subject: [PATCH] FS#1516 - Text color for input fields --- interface/web/js/scrigo.js.php | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 4316af7..f1d4829 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -503,3 +503,14 @@ } } + +function getInternetExplorerVersion() { + var rv = -1; // Return value assumes failure. + if (navigator.appName == 'Microsoft Internet Explorer') { + var ua = navigator.userAgent; + var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); + if (re.exec(ua) != null) + rv = parseFloat(RegExp.$1); + } + return rv; +} -- Gitblit v1.9.1