From ecd68e0c6e9a1ef4f77f117c9a564f4c99630bab Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 19 Apr 2011 00:54:36 +0200 Subject: [PATCH] actually know what to put in which login field --- js/js.js | 16 ++++++++++++++++ templates/installation.php | 2 +- templates/login.php | 8 ++++---- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/js/js.js b/js/js.js index 2fb67f0ec0..b7d94b5eb6 100644 --- a/js/js.js +++ b/js/js.js @@ -22,4 +22,20 @@ $(document).ready(function() { $('label.sqlite').css('background-color', '#ddd'); $('label.mysql').css('background-color', '#fff'); }); + + // Hide and show input field values for login form + var textuser = "username"; + var textpassword = "password"; + $("#user").focus(function() { + if($(this).attr("value") == textuser) $(this).attr("value", ""); + }); + $("#user").blur(function() { + if($(this).attr("value") == "") $(this).attr("value", textuser); + }); + $("#password").focus(function() { + if($(this).attr("value") == textpassword) $(this).attr("value", ""); + }); + $("#password").blur(function() { + if($(this).attr("value") == "") $(this).attr("value", textpassword); + }); }); diff --git a/templates/installation.php b/templates/installation.php index 73b9a67743..725c7f149e 100644 --- a/templates/installation.php +++ b/templates/installation.php @@ -3,7 +3,7 @@
- +
diff --git a/templates/login.php b/templates/login.php index 02ba70be52..c0defdc2b0 100644 --- a/templates/login.php +++ b/templates/login.php @@ -1,13 +1,13 @@
- " alt="ownCloud" /> + ownCloud
- + Login failed! - - + +