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 2017/12/13 20:46:31 UTC
svn commit: r1818063 -
/openoffice/ooo-site/trunk/content/download/download.js
Author: marcus
Date: Wed Dec 13 20:46:31 2017
New Revision: 1818063
URL: http://svn.apache.org/viewvc?rev=1818063&view=rev
Log:
Fixed bug: When webpage is initially opened with 'ast' as language which is also the first language in the drop-down-box list, then another language was selected and therefore used for download. Now 'ast' is actually used.
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=1818063&r1=1818062&r2=1818063&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Wed Dec 13 20:46:31 2017
@@ -397,9 +397,15 @@ DL.setLanguageSelection = function() {
}
}
+ // If the selected language is already the first in the select box and LANG_ISO === "ast" is also true,
+ // use "ast" as language.
+ if( selection.selectedIndex === 0 && DL.LANG_ISO === "ast" ) {
+ // Leave "ast" as selected language and don't change this.
+ // Empty by intention.
+
+ } else if( selection.selectedIndex === 0 ) {
// If no selected language was set in the select box because it was not recognized from browser data,
// assign "en-US" as default.
- if( selection.selectedIndex === 0 ) {
// Default: Assign "en-US".
for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 2 ) {
// If the language was found, set it as pre-selected.