Author: marcus
Date: Sun Jul  5 11:24:39 2015
New Revision: 1689236

URL: http://svn.apache.org/r1689236
Log:
Fixed problem with recognizing newer Mac OS X versions

Modified:
    openoffice/ooo-site/trunk/content/download/download.js

Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1689236&r1=1689235&r2=1689236&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Sun Jul  5 11:24:39 
2015
@@ -1115,6 +1115,21 @@ DL.getPlatform = function() {
                            ua.indexOf( "10_3"          ) !== -1 ) {    
DL.UI_PLATFORM          = "Mac OS X (Version <= 10.6)";
                                                                        
DL.PLATFORM             = "mac32";
                        }
+
+                       // OS X: 10.7 or newer?
+                       if( ua.indexOf( "10.11_"        ) !== -1 ||
+                           ua.indexOf( "10_11_"        ) !== -1 ||
+                           ua.indexOf( "10.10_"        ) !== -1 ||
+                           ua.indexOf( "10_10_"        ) !== -1 ||
+                           ua.indexOf( "10.9_"         ) !== -1 ||
+                           ua.indexOf( "10_9_"         ) !== -1 ||
+                           ua.indexOf( "10.8_"         ) !== -1 ||
+                           ua.indexOf( "10_8_"         ) !== -1 ||
+                           ua.indexOf( "10.7_"         ) !== -1 ||
+                           ua.indexOf( "10_7_"         ) !== -1 ) {    
DL.UI_PLATFORM          = "OS X 64-bit (x86-64) (DMG)";
+                                                                       
DL.PLATFORM             = "mac64";
+                       }
+
                } 
        } 
 


Reply via email to