diff options
author | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-06-16 16:21:11 +0000 |
---|---|---|
committer | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-06-16 16:21:11 +0000 |
commit | 732b1dedc765d5e1f93799a6480db606f4f67096 (patch) | |
tree | 13ec429086a27a99e4dfd6e51f87b298bf6606f4 /BKUOnline/src/main | |
parent | 61366ba8efcc0cf3d36438e9ee26228e7bc66174 (diff) | |
download | mocca-732b1dedc765d5e1f93799a6480db606f4f67096.tar.gz mocca-732b1dedc765d5e1f93799a6480db606f4f67096.tar.bz2 mocca-732b1dedc765d5e1f93799a6480db606f4f67096.zip |
workaround to https://bugzilla.mozilla.org/show_bug.cgi?id=498132
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@362 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main')
-rw-r--r-- | BKUOnline/src/main/webapp/js/deployJava.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/BKUOnline/src/main/webapp/js/deployJava.js b/BKUOnline/src/main/webapp/js/deployJava.js index 5466cbdd..8d644e00 100644 --- a/BKUOnline/src/main/webapp/js/deployJava.js +++ b/BKUOnline/src/main/webapp/js/deployJava.js @@ -30,6 +30,12 @@ */ /* + * Added by EGIZ: + * This file contains a workaround to https://bugzilla.mozilla.org/show_bug.cgi?id=498132 + * (see lines 90-92) + */ + +/* * deployJava.js * * This file is part of the Deployment Toolkit. It provides functions for web @@ -83,8 +89,9 @@ var deployJava = { var list = new Array(); if (deployJava.isPluginInstalled()) { var plugin = deployJava.getPlugin(); - for (var i = 0; i < plugin.jvms.getLength(); i++) { - list[i] = plugin.jvms.get(i).version; + var jvms = plugin.jvms; + for (var i = 0; i < jvms.getLength(); i++) { + list[i] = jvms.get(i).version; } } else { var browser = deployJava.getBrowser(); @@ -130,7 +137,7 @@ var deployJava = { } } } - + if (deployJava.debug) { for (var i = 0; i < list.length; ++i) { alert('We claim to have detected Java SE ' + list[i]); @@ -390,14 +397,14 @@ var deployJava = { } } - var list = deployJava.getJREs(); + var list = deployJava.getJREs(); for (var i = 0; i < list.length; ++i) { if (deployJava.compareVersionToPattern(list[i], patternArray, familyMatch)) { return true; } } - + return false; } else { alert('Invalid versionPattern passed to versionCheck: ' + |