summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-03-25 06:59:26 +0100
committerterry%netscape.com <>1999-03-25 06:59:26 +0100
commit889ac60beb371ebd0fe5e239a2848c850f8faa6f (patch)
tree85ebe3f3bb7995a11e70b96fbbabd07a0b5201dc /query.cgi
parent19ca3aa8dbc4f551836cd0dac9150118c9128ee1 (diff)
downloadbugzilla-889ac60beb371ebd0fe5e239a2848c850f8faa6f.tar.gz
bugzilla-889ac60beb371ebd0fe5e239a2848c850f8faa6f.tar.xz
Don't try to run our javascript if running on IE4.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi11
1 files changed, 9 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index 08ac3f224..3e8ea9e91 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) {
}
// -->
-</script>\n";
+</script>
+
+};