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/07/12 22:38:03 UTC
svn commit: r1610043 -
/openoffice/ooo-site/trunk/content/download/test/download.js
Author: marcus
Date: Sat Jul 12 20:38:02 2014
New Revision: 1610043
URL: http://svn.apache.org/r1610043
Log:
Increasing the counter as the array has now 3 elements per row
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=1610043&r1=1610042&r2=1610043&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Sat Jul 12 20:38:02 2014
@@ -382,10 +382,10 @@ DL.setLanguageSelection = function() {
var found = false;
// Set the recognized browser language as default for the select box.
- for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 2 ) {
+ for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 3 ) {
// If the language was found, set it as pre-selected.
if( DL.SEL_LANG[ i ] === DL.LANG_ISO ) {
- selection.selectedIndex = i / 2;
+ selection.selectedIndex = i / 3;
found = true;
break;
}
@@ -475,7 +475,7 @@ DL.getLanguageSelection = function() {
var language_value = document[ "download" ][ "language" ].options[ document[ "download" ][ "language" ].selectedIndex ].value;
// Search through the <select> element until the chosen language is found.
- for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 2 ) {
+ for( var i = 0, j = DL.SEL_LANG.length; i < j; i = i + 3 ) {
if( DL.SEL_LANG[ i ] === language_value ) {
DL.LANG_SEL = language_value;
break;