hid localhost field for SQLite

This commit is contained in:
Jan-Christoph Borchardt 2011-09-04 15:03:25 +02:00
parent 252bca5057
commit 2fed316efa
2 changed files with 10 additions and 4 deletions

View File

@ -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() {

View File

@ -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; ?>