summaryrefslogtreecommitdiffstats
path: root/core/js/setup.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/setup.js')
-rw-r--r--core/js/setup.js20
1 files changed, 4 insertions, 16 deletions
diff --git a/core/js/setup.js b/core/js/setup.js
index 6ef20673f10..3fb895cc414 100644
--- a/core/js/setup.js
+++ b/core/js/setup.js
@@ -1,27 +1,20 @@
$(document).ready(function() {
- // Hide the PostgreSQL config div if needed:
- if(!$('#pgsql').is(':checked')) {
- $('#use_postgresql').hide();
- }
-
$('#datadirField').hide(250);
if($('#hasSQLite').val()=='true'){
$('#databaseField').hide(250);
+ $('#use_other_db').slideUp(250);
}
$('#sqlite').click(function() {
- $('#use_mysql').slideUp(250);
- $('#use_postgresql').slideUp(250);
+ $('#use_other_db').slideUp(250);
});
$('#mysql').click(function() {
- $('#use_mysql').slideDown(250);
- $('#use_postgresql').slideUp(250);
+ $('#use_other_db').slideDown(250);
});
$('#pgsql').click(function() {
- $('#use_postgresql').slideDown(250);
- $('#use_mysql').slideUp(250);
+ $('#use_other_db').slideDown(250);
});
$('#showAdvanced').click(function() {
@@ -30,9 +23,4 @@ $(document).ready(function() {
$('#databaseField').slideToggle(250);
}
});
-
- // Hide the MySQL config div if needed :
- if($('#dbtype').val()=='sqlite') {
- $('#databaseField').hide();
- }
});