incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ksch...@apache.org
Subject svn commit: r1332006 - /incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js
Date Sun, 29 Apr 2012 21:54:10 GMT
Author: kschenk
Date: Sun Apr 29 21:54:10 2012
New Revision: 1332006

URL: http://svn.apache.org/viewvc?rev=1332006&view=rev
Log:
kls -- more changes to new download.js

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

Modified: incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js?rev=1332006&r1=1332005&r2=1332006&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/download_new_dl.js Sun Apr 29 21:54:10
2012
@@ -380,7 +380,11 @@ function hasMirrorLink() {
 	if (schema == "aoo_inclubating") {
 		platform = getPlatform(schema);
 	}
-
+	/* first check for availability */
+	 if ( platform == "none") {
+		 return false;
+	 }
+	 
 	if ( a[4] == 'y' ) {
 		// special handling for MAC, links in combination with general flag a[4]
 		if ( platform.indexOf( "Mac" ) == -1 || a[5] == 'y' ) {
@@ -546,15 +550,15 @@ function getPlatform(schema) {
 				}
 			}
 		} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
-			return "";
+			return "none";
 		} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
-			return "";
+			return "none";
 		} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
-			return "";
+			return "none";
 		} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"Intel" ) != -1 ) {
 			return "Mac OS Intel";
 		} else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf(
"PPC" ) != -1 ) {
-			return "";
+			return "none";
 		} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
 			return "Mac OS Intel" ;
 		} else if ( navigator.platform.indexOf( "iPad" ) != -1 || navigator.platform.indexOf( "iPhone"
) != -1 ||



Mime
View raw message