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/04/30 20:06:20 UTC
svn commit: r1591424 -
/openoffice/ooo-site/trunk/content/download/test/download.js
Author: marcus
Date: Wed Apr 30 18:06:20 2014
New Revision: 1591424
URL: http://svn.apache.org/r1591424
Log:
Let the release mode values start with '1' instead of '0', to avoid errors
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=1591424&r1=1591423&r2=1591424&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Wed Apr 30 18:06:20 2014
@@ -110,7 +110,7 @@ function getLanguage() {
*/
function hasMirrorLink( rel_mode ) {
- if ( rel_mode == 0 ) {
+ if ( rel_mode == 1 ) {
// Release mode
// First check if the Beta release languages (not available as current stable release !) are set in browser
if ( LANG_ISO == "bg" || LANG_ISO == "da" || LANG_ISO == "hi" || LANG_ISO == "nb" || LANG_ISO == "th" ) {
@@ -155,7 +155,7 @@ function getLink( rel_mode ) {
// If no release mode was given, assume it's about the stable release
if ( rel_mode == undefined )
- rel_mode = 0;
+ rel_mode = 1;
getLanguage();
getPlatform( rel_mode );
@@ -175,7 +175,7 @@ function getLink( rel_mode ) {
// If language is supported, then provide a download link.
if ( hasMirrorLink( rel_mode ) ) {
// Release mode
- if ( rel_mode == 0 ) {
+ if ( rel_mode == 1 ) {
// 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.
@@ -337,7 +337,7 @@ function getLink( rel_mode ) {
return LINK;
} else {
// Release mode
- if ( rel_mode == 0 ) {
+ if ( rel_mode == 1 ) {
// If language is not supported, then provide the link from the Native Language (NL) group.
LINK = LANG_ARRAY[ 4 ];
} else {
@@ -500,7 +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)";
- if ( rel_mode > 0 )
+ if ( rel_mode > 1 )
OLD_PLATFORM = true;
}
}
@@ -549,7 +549,7 @@ function getFilesize( rel_mode ) {
// If a platform was found and no error occurred, assign the array data and filesize from the release matrix
if ( RELEASE_MATRIX_PLATFORM_POS > -1 && !ERROR ) {
- if ( rel_mode == 0 ) {
+ if ( rel_mode == 1 ) {
// Release mode
// Assign all values from the release matrix of language and platform
RELEASE_MATRIX_PLATFORM = release_matrix[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS ];