nextcloud/core/js/setup.js

27 lines
564 B
JavaScript
Raw Normal View History

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