Author: nextgens
Date: 2008-02-26 01:54:55 +0000 (Tue, 26 Feb 2008)
New Revision: 18151

Modified:
   trunk/website/pages/en/download.php
Log:
website: show the .exe to Vista users on the download page (instead of JWS)

Modified: trunk/website/pages/en/download.php
===================================================================
--- trunk/website/pages/en/download.php 2008-02-25 17:23:08 UTC (rev 18150)
+++ trunk/website/pages/en/download.php 2008-02-26 01:54:55 UTC (rev 18151)
@@ -89,10 +89,12 @@
        hideDiv("windows");
        hideDiv("macos");
        hideDiv("unix");
-       if(Java >= 1 && navigator.javaEnabled()) {
+       if(navigator.userAgent.indexOf("Windows NT 6.0") > -1) {
+               // Windows vista has UAC enabled by default. We need to propose 
the .exe as JWS won't work :|
+               showDiv("windows");
+       } else if(Java >= 1 && navigator.javaEnabled()) {
                showDiv("jws");
-       }
-       else if (OSName != "") {
+       } else if (OSName != "") {
                showDiv("nojws");
                showDiv(OSName);
        }


Reply via email to