summaryrefslogtreecommitdiffstats
path: root/core/js/setup.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-07-24 18:02:36 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-07-24 19:56:57 +0200
commit284fb862589bb3a6441f464236abe735c6fe5dfc (patch)
treea39c1562b88e9f255045578ace91529439b120ba /core/js/setup.js
parent18c565666e4125350ade84be0ce570e5d0d70114 (diff)
downloadnextcloud-server-284fb862589bb3a6441f464236abe735c6fe5dfc.tar.gz
nextcloud-server-284fb862589bb3a6441f464236abe735c6fe5dfc.zip
show tablespace only for oracle, hide dbhost for sqlite, remove unnecessary js & html ids
Diffstat (limited to 'core/js/setup.js')
-rw-r--r--core/js/setup.js26
1 files changed, 10 insertions, 16 deletions
diff --git a/core/js/setup.js b/core/js/setup.js
index 76812b29979..c0df1ed96b0 100644
--- a/core/js/setup.js
+++ b/core/js/setup.js
@@ -11,42 +11,36 @@ $(document).ready(function() {
$('#selectDbType').buttonset();
$('#datadirContent').hide(250);
$('#databaseField').hide(250);
- if($('#hasSQLite').val()=='true'){
+ if($('#hasSQLite').val()){
$('#use_other_db').hide();
- $('#dbhost').hide();
- $('#dbhostlabel').hide();
+ $('#use_oracle_db').hide();
}
$('#adminlogin').change(function(){
$('#adminlogin').val($.trim($('#adminlogin').val()));
});
$('#sqlite').click(function() {
$('#use_other_db').slideUp(250);
- $('#dbhost').hide(250);
- $('#dbhostlabel').hide(250);
+ $('#use_oracle_db').slideUp(250);
});
$('#mysql').click(function() {
$('#use_other_db').slideDown(250);
- $('#dbhost').show(250);
- $('#dbhostlabel').show(250);
+ $('#use_oracle_db').slideUp(250);
});
-
+
$('#pgsql').click(function() {
$('#use_other_db').slideDown(250);
- $('#dbhost').show(250);
- $('#dbhostlabel').show(250);
+ $('#use_oracle_db').slideUp(250);
});
-
+
$('#oci').click(function() {
$('#use_other_db').slideDown(250);
- $('#dbhost').show(250);
- $('#dbhostlabel').show(250);
+ $('#use_oracle_db').show(250);
});
-
+
$('#mssql').click(function() {
$('#use_other_db').slideDown(250);
- $('#dbhost').show(250);
- $('#dbhostlabel').show(250);
+ $('#use_oracle_db').slideUp(250);
});
$('input[checked]').trigger('click');