diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-19 02:25:07 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-19 02:25:07 +0200 |
commit | 3113176ea04b206308de8180198f127744a34b8e (patch) | |
tree | 317676320725a571e822aa7983102c3c6e0da5b9 /js/js.js | |
parent | 074fda4ba877be69feaf40d32e084ebd603e3cb8 (diff) | |
parent | 565c46eedfb83a8eb3c95827cb21e1ed57c8c56e (diff) | |
download | nextcloud-server-3113176ea04b206308de8180198f127744a34b8e.tar.gz nextcloud-server-3113176ea04b206308de8180198f127744a34b8e.zip |
Merge branch 'refactoring' of git://anongit.kde.org/owncloud into refactoring
Diffstat (limited to 'js/js.js')
-rw-r--r-- | js/js.js | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -22,4 +22,24 @@ $(document).ready(function() { $('label.sqlite').css('background-color', '#ddd'); $('label.mysql').css('background-color', '#fff'); }); + + // Hide and show input field values for login and installation form + var textuser = 'username'; + var textpassword = 'password'; + var textadmin = 'admin username'; + var textdbuser = 'MySQL user'; + var textdbpass = 'password'; + var textdbname = 'database name'; + $('#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); }); + $('#admin').focus(function() { if($(this).attr('value') == textadmin) $(this).attr('value', ''); }); + $('#admin').blur(function() { if($(this).attr('value') == '') $(this).attr('value', textadmin); }); + $('#dbuser').focus(function() { if($(this).attr('value') == textdbuser) $(this).attr('value', ''); }); + $('#dbuser').blur(function() { if($(this).attr('value') == '') $(this).attr('value', textdbuser); }); + $('#dbpass').focus(function() { if($(this).attr('value') == textdbpass) $(this).attr('value', ''); }); + $('#dbpass').blur(function() { if($(this).attr('value') == '') $(this).attr('value', textdbpass); }); + $('#dbname').focus(function() { if($(this).attr('value') == textdbname) $(this).attr('value', ''); }); + $('#dbname').blur(function() { if($(this).attr('value') == '') $(this).attr('value', textdbname); }); }); |