Author: marcus
Date: Tue Mar 11 09:14:03 2014
New Revision: 1576240
URL: http://svn.apache.org/r1576240
Log:
Fixed problem to recognize OS X 10.6 or older platform correctly
Modified:
openoffice/ooo-site/trunk/content/download/test/download.js
Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL:
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1576240&r1=1576239&r2=1576240&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Tue Mar 11
09:14:03 2014
@@ -184,7 +184,6 @@ function getLink( rel_mode ) {
ERROR = true;
return LINK;
}
-
LINK =
"http://archive.apache.org/dist/openoffice/";
CHECKSUM_KEYS =
"https://people.apache.org/keys/group/openoffice.asc";
@@ -249,7 +248,6 @@ function getLink( rel_mode ) {
return LINK;
} else {
// Beta release mode
-
// If platform is too old, then provide a general
download link to the archive.
if ( OLD_PLATFORM ) {
// If platform is Mac OS X <=10.6, then provide
a download link with previous AOO version.
@@ -326,9 +324,12 @@ function getLink( rel_mode ) {
function getPlatform( rel_mode ) {
// For more help or data see: "http://www.useragentstring.com"
- var os = navigator.platform.toLowerCase();
- var ua = navigator.userAgent.toLowerCase();
- var av = navigator.appVersion.toLowerCase();
+ var os = navigator.platform.toLowerCase(); // Get the
platform string in lower cases
+ var ua = navigator.userAgent.toLowerCase(); // Get the User
Agent string in lower cases
+ var av = navigator.appVersion.toLowerCase(); // Get the
application version in lower cases
+ UI_PLATFORM = ""; // Delete any
previously set string
+ URL_PLATFORM = ""; // Delete any
previously set string
+ EXTENSION = ""; // Delete any
previously set string
// Add ECMA262-5 Array methods if not supported natively
// To workaround that MSIE 8 and older do not support this function
@@ -477,6 +478,7 @@ function getPlatform( rel_mode ) {
UI_PLATFORM = "unknown platform/OS";
ERROR = true;
}
+
return;
}