From: terry%netscape.com <> Date: Thu, 25 Mar 1999 05:59:26 +0000 (+0000) Subject: Don't try to run our javascript if running on IE4. X-Git-Tag: bugzilla-2.4~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889ac60beb371ebd0fe5e239a2848c850f8faa6f;p=thirdparty%2Fbugzilla.git Don't try to run our javascript if running on IE4. --- diff --git a/query.cgi b/query.cgi index 08ac3f2245..3e8ea9e919 100755 --- a/query.cgi +++ b/query.cgi @@ -225,11 +225,16 @@ for $p (@::legal_product) { } $i = 0; -$jscript .= " +$jscript .= q{ // Only display versions/components valid for selected product(s) function selectProduct(f) { + // Apparently, IE4 chokes on the below, so do nothing if running that. + var agt=navigator.userAgent.toLowerCase(); + if ((agt.indexOf("msie") != -1) && + (parseInt(navigator.appVersion) == 4)) return; + var cnt = 0; var i; var j; @@ -309,7 +314,9 @@ function selectProduct(f) { } // --> -\n"; + + +};