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/28 23:06:53 UTC

svn commit: r1590795 - /openoffice/ooo-site/trunk/content/download/test/download_droplist.js

Author: marcus
Date: Mon Apr 28 21:06:52 2014
New Revision: 1590795

URL: http://svn.apache.org/r1590795
Log:
Let the release mode values start with '1' instead of '0', to avoid errors

Modified:
    openoffice/ooo-site/trunk/content/download/test/download_droplist.js

Modified: openoffice/ooo-site/trunk/content/download/test/download_droplist.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_droplist.js?rev=1590795&r1=1590794&r2=1590795&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Mon Apr 28 21:06:52 2014
@@ -452,7 +452,7 @@ function resetSel() {
  * Depends on array-list
  */
 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" ) {
@@ -500,7 +500,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 );
@@ -520,7 +520,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.
@@ -685,7 +685,7 @@ function getLink( rel_mode ) {
  		return LINK_FULL;
 	} 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_FULL = LANG_ARRAY[ 4 ];
 		} else {
@@ -979,7 +979,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;
 		}
 	  } 
@@ -1044,7 +1044,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_FULL > 0 && !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_FULL ];