incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ksch...@apache.org
Subject svn commit: r1332825 - /incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
Date Tue, 01 May 2012 21:02:27 GMT
Author: kschenk
Date: Tue May  1 21:02:27 2012
New Revision: 1332825

URL: http://svn.apache.org/viewvc?rev=1332825&view=rev
Log:
kls -- fixed a few mistakes I made commenting out platforms in mirrobrain_getPlatformForMirror

Modified:
    incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js

Modified: incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js?rev=1332825&r1=1332824&r2=1332825&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/download_new_mirrorbrain.js Tue May
 1 21:02:27 2012
@@ -18,6 +18,8 @@ function mirrorbrain_getLink( version, s
 	if (schema == "aoo_incubating") {
 		platform = getPlatform(schema);
 	}
+	// if we don't support platform, we should send them to other.html, ok, taken care of in
hasMirrorLink()
+	// not the right place really but ???
 
 	if ( hasMirrorLink() ) {
 		// use mirror link
@@ -399,12 +401,12 @@ function mirrorbrain_getPlatformForMirro
 				} else {
 					return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
 				}
-			/*} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+			} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
 				return ( a[3] == 'y' ) ? "Solarisx86_install_wJRE" : "Solarisx86_install";
 			} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
 				return ( a[3] == 'y' ) ? "SolarisSparc_install_wJRE" : "SolarisSparc_install";
 			} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
-				return ( a[3] == 'y' ) ? "SolarisSparc_install_wJRE" : "SolarisSparc_install";*/
+				return ( a[3] == 'y' ) ? "SolarisSparc_install_wJRE" : "SolarisSparc_install";
 			} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"Intel" ) != -1 ) {
 				return "MacOSXIntel_install";
 			} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"PPC" ) != -1 ) {
@@ -515,16 +517,16 @@ function mirrorbrain_getPlatformForMirro
 				} else {
 					return  "Linux_x86_install-rpm";
 				}
-			} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+			/*} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
 				return  "Solaris_x86_install";
 			} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
 				return  "Solaris_Sparc_install";
 			} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
-				return  "Solaris_Sparc_install";
+				return  "Solaris_Sparc_install";*/
 			} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"Intel" ) != -1 ) {
 				return "MacOS_x86_install";
-			} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"PPC" ) != -1 ) {
-				return "MacOS_PPC_install";
+			/*} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"PPC" ) != -1 ) {
+				return "MacOS_PPC_install";*/
 			} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
 				return "MacOS_x86_install";
 			// testing if this code will help to redirect the iPad, iPhone, iPod entries



Mime
View raw message