From 481a37fcf3ea574ad5e22ecb57cf0161081cf230 Mon Sep 17 00:00:00 2001 From: Marvin Thomas Rabe Date: Mon, 3 Oct 2011 13:32:16 +0200 Subject: [PATCH] Show database only in advanced --- core/css/styles.css | 1 - core/js/setup.js | 2 ++ core/templates/installation.php | 18 +++++++++--------- index.php | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 44331d1998b..4d9cb203774 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -67,7 +67,6 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- #body-login p.info a { font-weight:bold; color:#777; } #login { min-height:30em; margin:2em auto 0; border-bottom:1px solid #f8f8f8; background:#eee; } -#login a#showAdvanced { color: #555; } #login form { width:22em; margin:2em auto 2em; padding:0; } #login form fieldset { background:0; border:0; margin-bottom:2em; padding:0; } #login form fieldset legend { font-weight:bold; } diff --git a/core/js/setup.js b/core/js/setup.js index e16f9b6e329..b765d41ba35 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -1,6 +1,7 @@ $(document).ready(function() { $('#selectDbType').buttonset(); $('#datadirContent').hide(250); + $('#databaseField').hide(250); if($('#hasSQLite').val()=='true'){ $('#use_other_db').hide(); $('#dbhost').hide(); @@ -29,6 +30,7 @@ $(document).ready(function() { $('#showAdvanced').click(function() { $('#datadirContent').slideToggle(250); + $('#databaseField').slideToggle(250); }); $("form").submit(function(){ // Save form parameters diff --git a/core/templates/installation.php b/core/templates/installation.php index e15e81191a9..c1bfbdf1763 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -21,7 +21,14 @@ - + +
+ t( 'Advanced' ); ?> ▾ +
+ +
+
+
t( 'Configure the database' ); ?> @@ -66,15 +73,8 @@ - -
- -
- t( 'Advanced' ); ?> ▾ -
- -
+
diff --git a/index.php b/index.php index fb8d1922dd4..072f526d8f9 100644 --- a/index.php +++ b/index.php @@ -28,7 +28,7 @@ require_once('lib/base.php'); // Setup required : $not_installed = !OC_Config::getValue('installed', false); $install_called = (isset($_POST['install']) AND $_POST['install']=='true'); -if($not_installed) { +if($not_installed OR true) { OC_Util::addScript('setup'); require_once('setup.php'); exit(); -- 2.39.5