nextcloud/core/js/setup.js

36 lines
819 B
JavaScript
Raw Normal View History

2011-06-20 01:33:34 +04:00
$(document).ready(function() {
$('#selectDbType').buttonset();
2011-06-20 01:33:34 +04:00
$('#datadirField').hide(250);
if($('#hasSQLite').val()=='true'){
2011-09-04 17:03:25 +04:00
$('#databaseField').hide();
$('#use_other_db').slideUp();
$('#dbhost').hide(250);
$('#dbhostlabel').hide(250);
2011-06-20 01:33:34 +04:00
}
$('#sqlite').click(function() {
$('#use_other_db').slideUp(250);
2011-09-04 17:03:25 +04:00
$('#dbhost').hide(250);
$('#dbhostlabel').hide(250);
2011-06-20 01:33:34 +04:00
});
$('#mysql').click(function() {
$('#use_other_db').slideDown(250);
2011-09-04 17:03:25 +04:00
$('#dbhost').show(250);
$('#dbhostlabel').show(250);
2011-08-07 23:06:53 +04:00
});
$('#pgsql').click(function() {
$('#use_other_db').slideDown(250);
2011-09-04 17:03:25 +04:00
$('#dbhost').show(250);
$('#dbhostlabel').show(250);
2011-06-20 01:33:34 +04:00
});
$('#showAdvanced').click(function() {
$('#datadirField').slideToggle(250);
if($('#hasSQLite').val()=='true'){
$('#databaseField').slideToggle(250);
}
});
});