Author: marcus Date: Sat May 31 12:18:06 2014 New Revision: 1598865 URL: http://svn.apache.org/r1598865 Log: Fixed broken parameter list for popup window, renamed function 'resetSel()' to 'resetElements()' to show the purpose better
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=1598865&r1=1598864&r2=1598865&view=diff ============================================================================== --- openoffice/ooo-site/trunk/content/download/test/download_droplist.js (original) +++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Sat May 31 12:18:06 2014 @@ -14,7 +14,7 @@ * function setLangSel () * function setVerSel () * function getTypeSel () - * function resetSel () + * function resetElements () * function showWindow ( target_url ) * function showErrorMessage ( error_text ) * function isLangSupported () @@ -612,7 +612,7 @@ function getOSSel() { URL_PLATFORM = ""; EXTENSION = ""; sel_os.selectedIndex = 0; - resetSel(); + resetElements(); return; } */ @@ -677,7 +677,7 @@ function getLangSel() { if( lang_value == "e0" || lang_value == "e1" ) { LANG_SEL = ""; sel_lang.selectedIndex = 0; - resetSel(); + resetElements(); return; } */ @@ -728,7 +728,7 @@ function getVerSel() { if( ver_value == "e0" || ver_value == "e1" ) { VERSION_SEL = ""; sel_ver.selectedIndex = 0; - resetSel(); + resetElements(); return; } */ @@ -772,7 +772,7 @@ function getTypeSel() { /* * Set CSS style for all elements with ID to make them invisible */ -function resetSel() { +function resetElements() { // var elements = document.getElementsByTagName( "select" ); /* // Set the first option as default for all <select> elements. @@ -909,9 +909,8 @@ function resetSel() { */ function showWindow( target_link ) { // Open a popup window with specific parameters to show the file from "target_link". - window = window.open( target_link, "_blank", \ - "location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, titlebar=no, toolbar=no, \ - left=100, top=250, width=800, height=550"); + window = window.open( target_link, "_blank", "location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, \ + titlebar=no, toolbar=no, left=100, top=250, width=800, height=550"); window.focus(); /* alert( "" @@ -929,7 +928,7 @@ function showErrorMessage( error_text ) // The chosen items from select boxes lead to no download link, show an error message about reason and alternative. // In general, reset the data for link, text and title of all elements. - resetSel(); + resetElements(); // Now set again the values for all elements that should be shown with changed data. document.getElementById( "dl_f_link" ).style.display = "inline"; @@ -1192,7 +1191,7 @@ function getLinkSel( rel_mode ) { /* if( PLATFORM_SEL == "" || LANG_SEL == "" || VERSION_SEL == "" ) { // When OS or language was not chosen, let the user choose again. // When OS, language or version was not chosen, let the user choose again. - // resetSel(); + // resetElements(); return; }