Author: marcus
Date: Tue Jun 3 19:00:49 2014
New Revision: 1599761
URL: http://svn.apache.org/r1599761
Log:
Inverted error flag, assume an error by default until the assembled download
link is valid
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=1599761&r1=1599760&r2=1599761&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js
(original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Tue
Jun 3 19:00:49 2014
@@ -967,7 +967,7 @@ function showErrorMessage( error_text )
UI_PLATFORM_NO_SUP = "";
// Set some error flags.
- ERROR = true;
+ ERROR = true;
return ERROR;
}
@@ -998,7 +998,7 @@ function isLangSupported() {
break;
default:
RELEASE_LANG = "";
- ERROR = true;
+ ERROR = true;
}
// if( LANG_ARRAY[ 3 ] === 'y' ) {
@@ -1006,7 +1006,7 @@ function isLangSupported() {
return true;
} else {
NOT_AVAILABLE = RELEASE_LANG[ 1 ] + " is not available";
- ERROR = true;
+ ERROR = true;
return false;
}
}
@@ -1270,7 +1270,7 @@ function getLinkSel() {
document.getElementById( "sub_green_box" ).style.display =
"none";
ARCHIVE = true;
- ERROR = false;
+ ERROR = false;
return LINK_FULL;
}
@@ -1541,6 +1541,7 @@ function getPlatform() {
// If $UI_PLATFORM_NO_SUP is already filled, something was
recognized and no more work is needed.
if( UI_PLATFORM_NO_SUP !== "" )
+ ERROR = true;
return PLATFORM;
// Recognized and *supported* platforms/OS, set $UI_PLATFORM to
show it to the user.