Set autocorrect and autocapitalize off for username/password.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Tue, 3 Apr 2012 21:59:42 +0000 (14:59 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Tue, 3 Apr 2012 21:59:42 +0000 (14:59 -0700)
src/main/webapp/index.xhtml

index 4ddd429..9e4ed55 100644 (file)
@@ -23,6 +23,7 @@
 
     <head>
         <link rel="icon" type="image/png" href="images/guacamole-logo-64.png"/>
 
     <head>
         <link rel="icon" type="image/png" href="images/guacamole-logo-64.png"/>
+        <link rel="apple-touch-icon" type="image/png" href="images/guacamole-logo-64.png"/>
         <link rel="stylesheet" type="text/css" href="styles/login.css"/>
         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
         <title>Guacamole ${project.version}</title>
         <link rel="stylesheet" type="text/css" href="styles/login.css"/>
         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
         <title>Guacamole ${project.version}</title>
             var loginUI = document.getElementById("login-ui");
             var connectionListUI = document.getElementById("connection-list-ui");
             var logout = document.getElementById("logout");
             var loginUI = document.getElementById("login-ui");
             var connectionListUI = document.getElementById("connection-list-ui");
             var logout = document.getElementById("logout");
+            var username = document.getElementById("username");
+            var password = document.getElementById("password");
 
             logout.onclick = function() {
                 window.location.href = "logout";
 
             logout.onclick = function() {
                 window.location.href = "logout";
                 var parameters = window.location.search.substring(1);
 
                 // Get username and password from form
                 var parameters = window.location.search.substring(1);
 
                 // Get username and password from form
-                var username = document.getElementById("username");
-                var password = document.getElementById("password");
-
                 var data =
                        "username=" + encodeURIComponent(username.value)
                     + "&password=" + encodeURIComponent(password.value)
                 var data =
                        "username=" + encodeURIComponent(username.value)
                     + "&password=" + encodeURIComponent(password.value)
 
             }
 
 
             }
 
+            // Turn off autocorrect and autocapitalization on usename 
+            username.setAttribute("autocorrect", "off");
+            username.setAttribute("autocapitalize", "off");
+
             resetUI();
 
             /* ]]> */ </script>
             resetUI();
 
             /* ]]> */ </script>