Author: marcus
Date: Mon Jun 2 21:29:08 2014
New Revision: 1599365
URL: http://svn.apache.org/r1599365
Log:
Implemented code to link to the porting webpage (for more platforms) and
archive (for oler releases)
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=1599365&r1=1599364&r2=1599365&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js
(original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Mon
Jun 2 21:29:08 2014
@@ -1243,6 +1243,42 @@ function getLinkSel() {
return ERROR;
}
+ // If version is 'older', create a download link that leads to the
archive webpage.
+ if( VERSION_SEL === "older" ) {
+ // In general, reset the data for link, text and title of all
elements.
+ resetElements();
+
+ // Set the URL to the archive as download link.
+ LINK_FULL = "http://www.openoffice.org/download/archive.html";
+
+ // Set the values for only one download text button.
+ document.getElementById( "dl_f_link" ).href =
LINK_FULL;
+ document.getElementById( "dl_f_link" ).innerHTML =
"Archive: Download from older releases";
+ document.getElementById( "dl_f_link" ).title =
"Archive: Download from older releases";
+ document.getElementById( "dl_f_link" ).style.display =
"inline";
+ document.getElementById( "dl_lp_link" ).style.display = "none";
+ document.getElementById( "sub_green_box" ).style.display =
"none";
+
+ return LINK_FULL;
+ }
+
+ // If platform is 'other', create a download link that leads to the
Porting webpage.
+ if( PLATFORM_SEL === "other" ) {
+ // In general, reset the data for link, text and title of all
elements.
+ resetElements();
+
+ // Set the URL to the archive as download link.
+ LINK_FULL = "http://www.openoffice.org/porting/";
+
+ // Set the values for only one download text button.
+ document.getElementById( "dl_f_link" ).href =
LINK_FULL;
+ document.getElementById( "dl_f_link" ).innerHTML =
"Porting: Download from other 3rd party vendors";
+ document.getElementById( "dl_f_link" ).title =
"Porting: Download from other 3rd party vendors";
+ document.getElementById( "dl_lp_link" ).style.display = "none";
+
+ return LINK_FULL;
+ }
+
// If language is not supported, show the none-availability to the user.
if( ! isLangSupported() ) {
if( R_MODE === 1 ) {
@@ -1391,12 +1427,15 @@ function getLinkSel() {
}
// Set the cursor style for the 3 links with icon to a help
sign.
- document.getElementById( "dl_hlp_img" ).style.cursor =
"help";
- document.getElementById( "dl_hlp" ).style.cursor =
"help";
- document.getElementById( "dl_chk_img" ).style.cursor =
"help";
- document.getElementById( "dl_chk" ).style.cursor =
"help";
- document.getElementById( "dl_rpt_img" ).style.cursor =
"help";
- document.getElementById( "dl_rpt" ).style.cursor =
"help";
+ document.getElementById( "dl_hlp_img" ).style.cursor
= "help";
+ document.getElementById( "dl_hlp" ).style.cursor
= "help";
+ document.getElementById( "dl_chk_img" ).style.cursor
= "help";
+ document.getElementById( "dl_chk" ).style.cursor
= "help";
+ document.getElementById( "dl_rpt_img" ).style.cursor
= "help";
+ document.getElementById( "dl_rpt" ).style.cursor
= "help";
+
+ // Make the sub-green box and therefore all elements visible.
+ document.getElementById( "sub_green_box" ).style.display
= "block";
}
// alertDbg( "getLinkSel(): End" );