From 039bbfde2d2e1efc90fa9828811566ea1f328722 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 29 Jan 2012 17:39:54 +0100 Subject: [PATCH] automatically show advanced options when no sqlite is available --- core/js/setup.js | 12 ++++++++++++ core/templates/installation.php | 3 +++ 2 files changed, 15 insertions(+) diff --git a/core/js/setup.js b/core/js/setup.js index 94097785e4..6e056cc90d 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -1,4 +1,11 @@ +var dbtypes $(document).ready(function() { + dbtypes={ + sqlite:!!$('#hasSQLite').val(), + mysql:!!$('#hasMySQL').val(), + postgresql:!!$('#hasPostgreSQL').val(), + } + $('#selectDbType').buttonset(); $('#datadirContent').hide(250); $('#databaseField').hide(250); @@ -60,4 +67,9 @@ $(document).ready(function() { form.submit(); return false; }); + + if(!dbtypes.sqlite){ + $('#showAdvanced').click(); + $('input[type="radio"]').first().click(); + } }); diff --git a/core/templates/installation.php b/core/templates/installation.php index f1cde6b390..4558f97bc0 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -1,3 +1,6 @@ +'> +'> +'>