Author: marcus
Date: Wed Apr 30 22:25:35 2014
New Revision: 1591504
URL: http://svn.apache.org/r1591504
Log:
Updated JS logic for old platforms
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=1591504&r1=1591503&r2=1591504&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Wed Apr 30
22:25:35 2014
@@ -203,7 +203,7 @@ function getLink( rel_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.
-/*
+
if ( UI_PLATFORM == "Mac OS X (10.6 or older)"
) {
FILENAME = "Apache_OpenOffice_"
+ PRE_VERSION + "_" + URL_PLATFORM + "_";
@@ -225,7 +225,7 @@ function getLink( rel_mode ) {
ERROR = true;
return LINK;
}
-*/
+
// If platform is Solaris, FreeBSD or OS/2,
// then provide a download link to the porting
webpage.
if ( UI_PLATFORM == "Solaris x86 (PKG)" ||
@@ -513,7 +513,7 @@ function getPlatform( rel_mode ) {
// Mac OS X?
if ( os.indexOf( "mac" ) != -1 ) { UI_PLATFORM
= "OS X 64-bit Intel (DMG)";
- URL_PLATFORM
= "MacOS_x86_install";
+ URL_PLATFORM
= "MacOS_x86-64_install";
EXTENSION
= ".dmg";
// OS X is 10.6 or older?
if ( ua.indexOf( "10.6" ) != -1 ||
@@ -524,7 +524,8 @@ function getPlatform( rel_mode ) {
ua.indexOf( "10_4" ) != -1 ||
ua.indexOf( "10.3" ) != -1 ||
ua.indexOf( "10_3" ) != -1 ) { UI_PLATFORM
= "Mac OS X (10.6 or older)";
- if ( rel_mode >
1 )
+ URL_PLATFORM
= "MacOS_x86_install";
+ if ( rel_mode >
0 )
OLD_PLATFORM = true;
}
}