Author: buildbot
Date: Sat Jun 21 16:44:20 2014
New Revision: 913174

Log:
Staging update by buildbot for ooo-site

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/download/test/analyze.html

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Jun 21 16:44:20 2014
@@ -1 +1 @@
-1604431
+1604432

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Jun 21 16:44:20 2014
@@ -1 +1 @@
-1604431
+1604432

Modified: websites/staging/ooo-site/trunk/content/download/test/analyze.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/test/analyze.html 
(original)
+++ websites/staging/ooo-site/trunk/content/download/test/analyze.html Sat Jun 
21 16:44:20 2014
@@ -62,6 +62,7 @@
        + "<li>"    + l10n_analyze_instruction_click_text         + "<b>[ " + 
l10n_analyze_select_button_text + " ]</b></li>"
        + "<li>"    + l10n_analyze_instruction_copy_text          + "<b>[ " + 
l10n_analyze_copy_button_text   + " ]</b></li>"
        + "<br />"
+
        + "<li><b>" + l10n_analyze_instruction_new_mail_text      + "</b></li>"
        + "<li>"    + l10n_analyze_instruction_problem_text       + "</li>"
        + "<li>"    + l10n_analyze_instruction_details_text       + "</li>"
@@ -133,35 +134,32 @@
 <!--
 document.write( "<div style='clear: both; float: left;'>"
   + "<div>"
+
     + "<form name='update_and_copy'>"
       + "<input class='btn_analyze' type='button' name='update' 
href='javascript:void( 0 )'"
         + "title='" + l10n_analyze_update_button_title + "' 
onclick='updateTable(); return false;'"
         + "value='" + l10n_analyze_update_button_text  + "' />"
       + "</input>"
 
-      + "<a style='padding: 0px 0px 0px 30px;'></a>"
-
       + "<input class='btn_analyze' type='button' name='select' 
href='javascript:void( 0 )'"
-        + "title='" + l10n_analyze_select_button_title + "' 
onclick='selectTable( \"table_data\" ); return false;'"
+        + "title='" + l10n_analyze_select_button_title + "' 
onclick='selectTable(); return false;'"
         + "value='" + l10n_analyze_select_button_text  + "' />"
       + "</input>"
 
-      + "<a style='padding: 0px 0px 0px 30px;'></a>"
-
-      + "<p class='btn_analyze' style='padding: 0px 15px 0px 15px; display: 
inline; cursor: default'"
-        + "title='" + l10n_analyze_copy_button_title   + "'>"
-        + l10n_analyze_copy_button_text
-      + "</p>"
+      + "<input class='btn_analyze' type='button' name='copy'   
href='javascript:void( 0 )'"
+        + "title='" + l10n_analyze_copy_button_title   + "'"
+        + "value='" + l10n_analyze_copy_button_text    + "' disabled 
style='color: #000000; cursor: default;' />"
     + "</form>"
 
     + "<p>&nbsp;</p>"
+
   + "</div>"
 + "</div>" // Update and select buttons
 
 + "<div style='clear: both; float: left;'>"
   // List some variables from browser's Document Object Model (DOM).
-  + "<div style='float: left;'>"
-    + "<table class='tbl_analyze' id='table_data' style='border-collapse: 
collapse; border-spacing: 2px; width: 100%;'>"
+
+    + "<table class='tbl_analyze' id='table_data'>"
     + "<tbody>"
       + "<th style='width: 25%;'><b>" + l10n_analyze_table_browser_text + 
"</b></th>"
       + "<th style='width: 75%;'><b>" + l10n_analyze_table_values_text  + 
"</b></th>"
@@ -223,37 +221,37 @@ document.write( "<div style='clear: both
          + "<tr><td>Checksum file link (lp) (here for MD5)     
</td><td></td></tr>"    /* LINK_CHK_MD5_LP */
          + "<tr><td>Base URL to Sourceforge.net                
</td><td></td></tr>"    /* SOURCEFORGE_BASE_URL */
          + "<tr><td>Base URL to Apache Archive                 
</td><td></td></tr>"    /* ASF_ARC_BASE_URL */
-         + "<tr><td>getLinkSelection()                         
</td><td></td></tr>"    /* getLinkSel() */
-         + "<tr><td>isLanguageSupported() (true/false) ?       
</td><td></td></tr>"    /* isLangSupported() */
+         + "<tr><td>getLinkSelection() (download URL)          
</td><td></td></tr>"    /* getLinkSelection() */
+         + "<tr><td>isLanguageSupported() (true/false) ?       
</td><td></td></tr>"    /* isLanguageSupported() */
          + "<tr><td>Show the sub-box (true/false) ?            
</td><td></td></tr>"    /* SHOW_SUB_BOX */
          + "<tr><td>General error (true/false) ?               
</td><td></td></tr>"    /* ERROR */
     + "</tbody>"
     + "</table>"
-  + "</div>"
+
 + "</div>" ); // Table
 
 function updateTable() {
-  // All variables and functions that should be shown in the table.
+  // Show all variables and functions in the table that are defined in the 
following array.
 
-  var vars = [ LANG_ISO, LANG_SEL, RELEASE_PLATFORM_POS_FULL, 
RELEASE_PLATFORM_POS_LP, RELEASE_PLATFORM, RELEASE_LANG,
-               UI_PLATFORM, UI_PLATFORM_NO_SUP, PLATFORM, PLATFORM_FULL, 
PLATFORM_LP, PLATFORM_SEL, VERSION_SEL,
-               FILENAME_FULL, FILENAME_LP, EXTENSION, FILESIZE_FULL, 
FILESIZE_LP, REL_TEXT, LINK_FULL, LINK_LP,
-               LINK_CHK_MD5_FULL, LINK_CHK_MD5_LP, SOURCEFORGE_BASE_URL, 
ASF_ARC_BASE_URL, getLinkSelection(),
-               isLanguageSupported(), SHOW_SUB_BOX, ERROR ];
-
-  // Assign the respective table cell with the variable or function.
-  // Start with the 20th row (i = 19) in the 2nd cell (1), count through the 
elements array (j):
-  for( var i = 19, j = 0, k = vars.length; j < k; i++, j++ ) {
-       document.getElementById( "table_data" ).rows[ i ].cells[ 1 ].innerHTML 
= vars[ j ];
+  var variables = [ LANG_ISO, LANG_SEL, RELEASE_PLATFORM_POS_FULL, 
RELEASE_PLATFORM_POS_LP, RELEASE_PLATFORM, RELEASE_LANG,
+                   UI_PLATFORM, UI_PLATFORM_NO_SUP, PLATFORM, PLATFORM_FULL, 
PLATFORM_LP, PLATFORM_SEL, VERSION_SEL,
+                   FILENAME_FULL, FILENAME_LP, EXTENSION, FILESIZE_FULL, 
FILESIZE_LP, REL_TEXT, LINK_FULL, LINK_LP,
+                   LINK_CHK_MD5_FULL, LINK_CHK_MD5_LP, SOURCEFORGE_BASE_URL, 
ASF_ARC_BASE_URL, getLinkSelection(),
+                   isLanguageSupported(), SHOW_SUB_BOX, ERROR ];
+
+  // Start with the 20th row (i = 19) in the 2nd cell (1), count through the 
elements array (j)
+  // and assign the found values as innerHMTL to the table cells.
+  for( var i = 19, j = 0, k = variables.length; j < k; i++, j++ ) {
+       document.getElementById( "table_data" ).rows[ i ].cells[ 1 ].innerHTML 
= variables[ j ];
   }
 
   return;
 }
 
-function selectTable( table ) {
+function selectTable() {
   // Select all table data, so that the user can copy it manually into the 
clipboard.
 
-  var data          = document.getElementById( table );
+  var data          = document.getElementById( "table_data" );
   var selection             = window.getSelection();
   var selected_range = document.createRange();
 
@@ -271,7 +269,7 @@ function selectTable( table ) {
 
   } else if( document.createRange && window.getSelection ) {
        // All other browsers.
-       selected_range.selectNodeContents( table );
+       selected_range.selectNodeContents( "table_data" );
        selection.removeAllRanges();
        selection.addRange( selected_range );
   }


Reply via email to