Author: marcus
Date: Tue Sep 16 21:12:59 2014
New Revision: 1625393

URL: http://svn.apache.org/r1625393
Log:
Commented out not needed code to reduce complexity

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

Modified: openoffice/ooo-site/trunk/content/download/download_kay.js
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download_kay.js?rev=1625393&r1=1625392&r2=1625393&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download_kay.js (original)
+++ openoffice/ooo-site/trunk/content/download/download_kay.js Tue Sep 16 
21:12:59 2014
@@ -380,7 +380,7 @@ DL.setLanguageSelection = function() {
        // Depending on $DL.LANG_ISO assign the language position of the 
release matrix.
 
        var selection = document.getElementById( "language" );
-       var found     = false;
+//     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 + 3 ) {
@@ -394,7 +394,8 @@ DL.setLanguageSelection = function() {
 
        // If no selected language was set in the select box because it was not 
recognized from browser data,
        // assign "en-US" as default.
-       if( ! found ) {
+//     if( ! found ) {
+       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.
@@ -427,7 +428,7 @@ DL.setVersionSelection = function() {
                        break;
                }
        }
-
+/*
        // If no version was set as global variable,
        // assign the most recent version as default.
        if( selection.selectedIndex === 0 ) {
@@ -440,7 +441,7 @@ DL.setVersionSelection = function() {
                        }
                }
        }
-
+*/
        DL.VERSION_SEL = selection.value;
        return DL.VERSION_SEL;
 }


Reply via email to