]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Don't try to run our javascript if running on IE4.
authorterry%netscape.com <>
Thu, 25 Mar 1999 05:59:26 +0000 (05:59 +0000)
committerterry%netscape.com <>
Thu, 25 Mar 1999 05:59:26 +0000 (05:59 +0000)
query.cgi

index 08ac3f2245900e795fb52a462adcc2bce3bbc683..3e8ea9e919271a99252d4e87b2201eb0c538a5a2 100755 (executable)
--- 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) {
 
 }
 // -->
-</script>\n";
+</script>
+
+};