diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-06-20 20:29:30 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-06-20 20:29:30 +0200 |
commit | 91c37bbb7642b996e4c386b3033cca02831371ef (patch) | |
tree | 96984269f6851e9208e26c9533c5ce4e045396c5 /core/js/setup.js | |
parent | 272fc252fb71422db2101a76fc541f20924808cd (diff) | |
download | nextcloud-server-91c37bbb7642b996e4c386b3033cca02831371ef.tar.gz nextcloud-server-91c37bbb7642b996e4c386b3033cca02831371ef.zip |
moved core stuff to /core
Diffstat (limited to 'core/js/setup.js')
-rw-r--r-- | core/js/setup.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/core/js/setup.js b/core/js/setup.js new file mode 100644 index 00000000000..b4616b8b14c --- /dev/null +++ b/core/js/setup.js @@ -0,0 +1,26 @@ +$(document).ready(function() { + // Hide the MySQL config div if needed : + if(!$('#mysql').is(':checked') && $('#hasSQLite').val()=='true') { + $('#use_mysql').hide(); + } + + $('#datadirField').hide(250); + if($('#hasSQLite').val()=='true'){ + $('#databaseField').hide(250); + } + + $('#sqlite').click(function() { + $('#use_mysql').slideUp(250); + }); + + $('#mysql').click(function() { + $('#use_mysql').slideDown(250); + }); + + $('#showAdvanced').click(function() { + $('#datadirField').slideToggle(250); + if($('#hasSQLite').val()=='true'){ + $('#databaseField').slideToggle(250); + } + }); +}); |