summaryrefslogtreecommitdiffstats
path: root/core/js/setup.js
diff options
context:
space:
mode:
authorSerge Martin <edb@sigluy.net>2011-08-07 21:06:53 +0200
committerSerge Martin <edb@sigluy.net>2011-08-07 21:06:53 +0200
commit3e8ae8636cad91877c727c7b1ea77436816e7c3d (patch)
tree297fb9c5ab82a27d042bad7bc304f020f957a170 /core/js/setup.js
parentacf7916e71f1e290aa12eb259d92aa8ab2ffcf23 (diff)
downloadnextcloud-server-3e8ae8636cad91877c727c7b1ea77436816e7c3d.tar.gz
nextcloud-server-3e8ae8636cad91877c727c7b1ea77436816e7c3d.zip
Add postgresql support
REVIEW: 102101
Diffstat (limited to 'core/js/setup.js')
-rw-r--r--core/js/setup.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/js/setup.js b/core/js/setup.js
index b4616b8b14c..3025a511c61 100644
--- a/core/js/setup.js
+++ b/core/js/setup.js
@@ -1,8 +1,13 @@
$(document).ready(function() {
// Hide the MySQL config div if needed :
- if(!$('#mysql').is(':checked') && $('#hasSQLite').val()=='true') {
+ if(!$('#mysql').is(':checked')) {
$('#use_mysql').hide();
}
+
+ // Hide the PostgreSQL config div if needed:
+ if(!$('#pgsql').is(':checked')) {
+ $('#use_postgresql').hide();
+ }
$('#datadirField').hide(250);
if($('#hasSQLite').val()=='true'){
@@ -11,10 +16,17 @@ $(document).ready(function() {
$('#sqlite').click(function() {
$('#use_mysql').slideUp(250);
+ $('#use_postgresql').slideUp(250);
});
$('#mysql').click(function() {
$('#use_mysql').slideDown(250);
+ $('#use_postgresql').slideUp(250);
+ });
+
+ $('#pgsql').click(function() {
+ $('#use_postgresql').slideDown(250);
+ $('#use_mysql').slideUp(250);
});
$('#showAdvanced').click(function() {