2011-04-17 13:49:54 +00:00
|
|
|
$(document).ready(function() {
|
2011-05-17 20:34:31 +00:00
|
|
|
// Hide the MySQL config div if needed :
|
2011-05-19 19:19:37 +00:00
|
|
|
if(!$('#mysql').is(':checked') && $('#hasSQLite').val()=='true') {
|
2011-05-17 20:34:31 +00:00
|
|
|
$('#use_mysql').hide();
|
|
|
|
}
|
2011-05-19 19:19:37 +00:00
|
|
|
|
|
|
|
$('#datadirField').hide(250);
|
|
|
|
if($('#hasSQLite').val()=='true'){
|
|
|
|
$('#databaseField').hide(250);
|
|
|
|
}
|
|
|
|
|
2011-05-17 20:34:31 +00:00
|
|
|
$('#sqlite').click(function() {
|
|
|
|
$('#use_mysql').slideUp(250);
|
2011-04-16 22:45:05 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#mysql').click(function() {
|
|
|
|
$('#use_mysql').slideDown(250);
|
|
|
|
});
|
2011-05-19 19:19:37 +00:00
|
|
|
|
|
|
|
$('#showAdvanced').click(function() {
|
|
|
|
$('#datadirField').slideToggle(250);
|
|
|
|
if($('#hasSQLite').val()=='true'){
|
|
|
|
$('#databaseField').slideToggle(250);
|
|
|
|
}
|
|
|
|
});
|
2011-03-01 22:20:16 +00:00
|
|
|
});
|