From 398d4de0f51ac6326c92e909686258aa605a5b82 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 19 May 2011 21:19:37 +0200 Subject: [PATCH] fix some bugs in the first run dialog, and hide advanced setting initially. --- js/js.js | 16 ++++++++++++++-- templates/installation.php | 25 ++++++++++++++++++------- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/js/js.js b/js/js.js index a6470b99bf..a6765ec62d 100644 --- a/js/js.js +++ b/js/js.js @@ -1,9 +1,14 @@ $(document).ready(function() { // Hide the MySQL config div if needed : - if(!$('#mysql').is(':checked')) { + 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); }); @@ -11,4 +16,11 @@ $(document).ready(function() { $('#mysql').click(function() { $('#use_mysql').slideDown(250); }); + + $('#showAdvanced').click(function() { + $('#datadirField').slideToggle(250); + if($('#hasSQLite').val()=='true'){ + $('#databaseField').slideToggle(250); + } + }); }); diff --git a/templates/installation.php b/templates/installation.php index 9d5eb0c4a5..880beb9a89 100644 --- a/templates/installation.php +++ b/templates/installation.php @@ -4,31 +4,41 @@

Welcome to ownCloud, your personnal cloud.
- To finish the installation, please follow the 3 remaining steps below. + To finish the installation, please follow the steps below.

0): ?>
- STEP 1 : Create an admin account. + Create an admin account.

-
- STEP 2 : Set where to store the data. + Advanced '> + +
+ Set where to store the data.

-
- STEP 3 : Configure your database. +
+ Configure your database. +

I will use a SQLite database. You have nothing to do !

@@ -38,6 +48,7 @@ +

I will use a MySQL database.