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 23:24:53 UTC
svn commit: r1591484 -
/openoffice/ooo-site/trunk/content/download/test/download.js
Author: marcus
Date: Wed Apr 30 21:24:53 2014
New Revision: 1591484
URL: http://svn.apache.org/r1591484
Log:
Changed order of full install and langpack
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=1591484&r1=1591483&r2=1591484&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Wed Apr 30 21:24:53 2014
@@ -32,6 +32,30 @@ var ARCHIVE = false; // The download U
var ERROR = false; // The download URL is correct (false) or not (true)?
/*
+ * Output values of variables for debugging
+ */
+function alertDbg( function_name ) {
+ alert ( ""
+ + function_name + "\n"
+ + "LANG_ISO: " + "\t\t\t\t\t" + LANG_ISO + "\n"
+ + "RELEASE_MATRIX_PLATFORM_POS: " + "\t" + RELEASE_MATRIX_PLATFORM_POS + "\n"
+ + "RELEASE_MATRIX_PLATFORM: " + "\t\t\t" + RELEASE_MATRIX_PLATFORM + "\n"
+ + "UI_PLATFORM: " + "\t\t\t\t\t" + UI_PLATFORM + "\n"
+ + "URL_PLATFORM: " + "\t\t\t\t\t" + URL_PLATFORM + "\n"
+ + "OLD_PLATFORM: " + "\t\t\t\t\t" + OLD_PLATFORM + "\n"
+ + "FILENAME: " + "\t\t\t\t" + FILENAME + "\n"
+ + "FILESIZE: " + "\t\t\t\t\t" + FILESIZE + "\n"
+ + "EXTENSION: " + "\t\t\t\t\t" + EXTENSION + "\n"
+ + "BASE_URL: " + "\t\t\t\t\t" + SOURCEFORGE_BASE_URL + "\n"
+ + "LINK: " + "\t\t\t\t\t\t" + LINK + "\n"
+ + "SOURCEFORGE: " + "\t\t\t\t\t\t" + SOURCEFORGE + "\n"
+ + "OTHER: " + "\t\t\t\t\t\t" + OTHER + "\n"
+ + "ARCHIVE: " + "\t\t\t\t\t\t" + ARCHIVE + "\n"
+ + "ERROR: " + "\t\t\t\t\t\t" + ERROR + "\n"
+ + "" );
+}
+
+/*
* Get array and ISO code for language
* Depends on $NL_LANGUAGE
*/
@@ -523,25 +547,25 @@ function getFilesize( rel_mode ) {
// Depending on $URL_PLATFORM assign the platform position of the release matrix
switch ( URL_PLATFORM ) {
case "Linux_x86-64_install-deb":
- RELEASE_MATRIX_PLATFORM_POS = 0;
+ RELEASE_MATRIX_PLATFORM_POS = 1;
break;
case "Linux_x86-64_install-rpm":
- RELEASE_MATRIX_PLATFORM_POS = 2;
+ RELEASE_MATRIX_PLATFORM_POS = 3;
break;
case "Linux_x86_install-deb":
- RELEASE_MATRIX_PLATFORM_POS = 4;
+ RELEASE_MATRIX_PLATFORM_POS = 5;
break;
case "Linux_x86_install-rpm":
- RELEASE_MATRIX_PLATFORM_POS = 6;
+ RELEASE_MATRIX_PLATFORM_POS = 7;
break;
case "MacOS_x86-64_install":
- RELEASE_MATRIX_PLATFORM_POS = 8;
+ RELEASE_MATRIX_PLATFORM_POS = 9;
break;
case "MacOS_x86_install":
- RELEASE_MATRIX_PLATFORM_POS = 8;
+ RELEASE_MATRIX_PLATFORM_POS = 9;
break;
case "Win_x86_install":
- RELEASE_MATRIX_PLATFORM_POS = 10;
+ RELEASE_MATRIX_PLATFORM_POS = 11;
break;
default:
RELEASE_MATRIX_PLATFORM_POS = -1;