From 25cbc5fbcf4016c5b7bfaa38b6ae1354ea43120c Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 6 Oct 2009 10:03:53 +0000 Subject: disable launch button for mac os < 10.6 (tested for firefox/safari) git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@523 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUOnline/src/main/webapp/js/deployJava.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'BKUOnline/src/main/webapp') diff --git a/BKUOnline/src/main/webapp/js/deployJava.js b/BKUOnline/src/main/webapp/js/deployJava.js index f4027953..e25902c0 100644 --- a/BKUOnline/src/main/webapp/js/deployJava.js +++ b/BKUOnline/src/main/webapp/js/deployJava.js @@ -491,7 +491,9 @@ var deployJava = { // [#425] Disable WebStart Launch Button for MacOS if (navigator.appVersion.toLowerCase().indexOf("mac")!=-1 && - navigator.appVersion.toLowerCase().indexOf("os x 10_6")==-1) { + navigator.userAgent.toLowerCase().indexOf("os x 10_6")==-1 && + navigator.userAgent.toLowerCase().indexOf("os x 10.6")==-1 ) + { document.write('<' + 'a disabled="disabled"' + ' onMouseOver="window.status=\'\'; ' + 'return true;"><' + 'img class="disabled"' + -- cgit v1.2.3