From 2b3e1cd6126fb616eb0b42481228c49e163849da Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 3 Apr 2012 14:59:42 -0700 Subject: [PATCH] Set autocorrect and autocapitalize off for username/password. --- src/main/webapp/index.xhtml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/index.xhtml b/src/main/webapp/index.xhtml index 4ddd429..9e4ed55 100644 --- a/src/main/webapp/index.xhtml +++ b/src/main/webapp/index.xhtml @@ -23,6 +23,7 @@ + Guacamole ${project.version} @@ -185,6 +186,8 @@ 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"; @@ -196,9 +199,6 @@ 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) @@ -239,6 +239,10 @@ } + // Turn off autocorrect and autocapitalization on usename + username.setAttribute("autocorrect", "off"); + username.setAttribute("autocapitalize", "off"); + resetUI(); /* ]]> */ -- 1.7.10.4