diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-09-04 15:03:25 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-09-04 15:03:25 +0200 |
commit | 2fed316efa4ff219778f6baa392e3a32382ff7f5 (patch) | |
tree | 7dcb1d5c93352f8ef9dda900d3a9954daf6b987f /core | |
parent | 252bca505758eaf668a4b5416003569568b91465 (diff) | |
download | nextcloud-server-2fed316efa4ff219778f6baa392e3a32382ff7f5.tar.gz nextcloud-server-2fed316efa4ff219778f6baa392e3a32382ff7f5.zip |
hid localhost field for SQLite
Diffstat (limited to 'core')
-rw-r--r-- | core/js/setup.js | 12 | ||||
-rw-r--r-- | core/templates/installation.php | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/core/js/setup.js b/core/js/setup.js index 736bedac755..01b8c130397 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -2,20 +2,28 @@ $(document).ready(function() { $('#selectDbType').buttonset(); $('#datadirField').hide(250); if($('#hasSQLite').val()=='true'){ - $('#databaseField').hide(250); - $('#use_other_db').slideUp(250); + $('#databaseField').hide(); + $('#use_other_db').slideUp(); + $('#dbhost').hide(250); + $('#dbhostlabel').hide(250); } $('#sqlite').click(function() { $('#use_other_db').slideUp(250); + $('#dbhost').hide(250); + $('#dbhostlabel').hide(250); }); $('#mysql').click(function() { $('#use_other_db').slideDown(250); + $('#dbhost').show(250); + $('#dbhostlabel').show(250); }); $('#pgsql').click(function() { $('#use_other_db').slideDown(250); + $('#dbhost').show(250); + $('#dbhostlabel').show(250); }); $('#showAdvanced').click(function() { diff --git a/core/templates/installation.php b/core/templates/installation.php index ba0322cc051..09f9ad8c359 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -64,8 +64,6 @@ <input type="text" name="dbuser" id="dbuser" value="<?php print OC_Helper::init_var('dbuser'); ?>" placeholder="<?php echo $l->t( 'Database user' ); ?>" autocomplete="off" /> <input type="password" name="dbpass" id="dbpass" value="<?php print OC_Helper::init_var('dbpass'); ?>" placeholder="<?php echo $l->t( 'Database password' ); ?>" /> <input type="text" name="dbname" id="dbname" value="<?php print OC_Helper::init_var('dbname'); ?>" placeholder="<?php echo $l->t( 'Database name' ); ?>" autocomplete="off" /> - - </div> <?php endif; ?> |