You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/05/01 00:31:49 UTC
svn commit: r1591505 -
/openoffice/ooo-site/trunk/content/download/download.js
Author: marcus
Date: Wed Apr 30 22:31:49 2014
New Revision: 1591505
URL: http://svn.apache.org/r1591505
Log:
Updated JS logic for old platforms
Modified:
openoffice/ooo-site/trunk/content/download/download.js
Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1591505&r1=1591504&r2=1591505&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Wed Apr 30 22:31:49 2014
@@ -179,7 +179,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 + "_";
@@ -201,7 +201,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)" ||
@@ -489,7 +489,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 ||
@@ -500,6 +500,7 @@ 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)";
+ URL_PLATFORM = "MacOS_x86_install";
if ( rel_mode > 0 )
OLD_PLATFORM = true;
}