You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/js/js.js

25 lines
778 B

$(document).ready(function() {
//hide the advanced config
$('#advanced_options').hide();
$('#use_mysql').hide();
$('label.sqlite').css('background-color', '#ddd');
$('label.mysql').css('background-color', '#fff');
// Sets advanced_options link behaviour :
$('#advanced_options_link').click(function() {
$('#advanced').toggleClass('userLinkOn');
$('#advanced_options').slideToggle(250);
return false;
});
$('#mysql').click(function() {
$('#use_mysql').slideDown(250);
$('label.sqlite').css('background-color', '#fff');
$('label.mysql').css('background-color', '#ddd');
});
$('#sqlite').click(function() {
$('#use_mysql').slideUp(250);
$('label.sqlite').css('background-color', '#ddd');
$('label.mysql').css('background-color', '#fff');
});
});