summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/webapp/js
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-07-01 12:34:54 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-07-01 12:34:54 +0000
commite7641b2b5861897e1e1abab3b7411bb77361d5cb (patch)
treeb68e2898dcad31332ab557e78a44e680fb5790d9 /BKUOnline/src/main/webapp/js
parent2cf8668b84d70877ed274d06727ef6a7e00aa05f (diff)
downloadmocca-e7641b2b5861897e1e1abab3b7411bb77361d5cb.tar.gz
mocca-e7641b2b5861897e1e1abab3b7411bb77361d5cb.tar.bz2
mocca-e7641b2b5861897e1e1abab3b7411bb77361d5cb.zip
[#425] Disable WebStart Launch Button for MacOS
added standalone profile in BKU Web Start git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@379 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/webapp/js')
-rw-r--r--BKUOnline/src/main/webapp/js/deployJava.js23
1 files changed, 18 insertions, 5 deletions
diff --git a/BKUOnline/src/main/webapp/js/deployJava.js b/BKUOnline/src/main/webapp/js/deployJava.js
index dbeab995..225ca80f 100644
--- a/BKUOnline/src/main/webapp/js/deployJava.js
+++ b/BKUOnline/src/main/webapp/js/deployJava.js
@@ -36,6 +36,11 @@
* (lines 95-99)
* [#424] Web Start loading via java plugin (Sun deployment script) fails on WinXP
* (lines 501-506)
+ *
+ * features:
+ * [#425] Disable WebStart Launch Button for MacOS
+ * (lines 492-504)
+ *
*/
/*
@@ -75,8 +80,7 @@ var deployJava = {
mimeType: 'application/npruntime-scriptable-plugin;DeploymentToolkit',
// location of the Java Web Start launch button graphic
- launchButtonPNG: 'http://java.sun.com/products/jfc/tsc/articles/swing2d/webstart.png',
-
+ launchButtonPNG: 'img/webstart.png',
/**
* Returns an array of currently-installed JRE version strings.
@@ -485,11 +489,20 @@ var deployJava = {
'if (deployJava.launch(&quot;' + jnlp + '&quot;)) {}' +
'}';
- document.write('<' + 'a href="' + url +
+ // [#425] Disable WebStart Launch Button for MacOS
+ if (navigator.appVersion.toLowerCase().indexOf("mac")!=-1) {
+ document.write('<' + 'a disabled="disabled"' +
+ ' onMouseOver="window.status=\'\'; ' +
+ 'return true;"><' + 'img class="disabled"' +
+ 'src="' + deployJava.launchButtonPNG + '" ' +
+ 'border="0" /><' + '/' + 'a' + '>');
+ } else {
+ document.write('<' + 'a href="' + url +
'" onMouseOver="window.status=\'\'; ' +
'return true;"><' + 'img ' +
- 'src="' + deployJava.launchButtonPNG + '" ' +
+ 'src="' + deployJava.launchButtonPNG + '" ' +
'border="0" /><' + '/' + 'a' + '>');
+ }
},
@@ -636,7 +649,7 @@ var deployJava = {
if (deployJava.debug) {
alert('userAgent -> ' + browser);
}
-
+
if ((navigator.vendor) &&
(navigator.vendor.toLowerCase().indexOf('apple') != -1) &&
(browser.indexOf('safari') != -1)) {