2011-06-20 01:33:34 +04:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('#datadirField').hide(250);
|
|
|
|
if($('#hasSQLite').val()=='true'){
|
|
|
|
$('#databaseField').hide(250);
|
2011-08-09 13:32:22 +04:00
|
|
|
$('#use_other_db').slideUp(250);
|
2011-06-20 01:33:34 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
$('#sqlite').click(function() {
|
2011-08-09 13:32:22 +04:00
|
|
|
$('#use_other_db').slideUp(250);
|
2011-06-20 01:33:34 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#mysql').click(function() {
|
2011-08-09 13:32:22 +04:00
|
|
|
$('#use_other_db').slideDown(250);
|
2011-08-07 23:06:53 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#pgsql').click(function() {
|
2011-08-09 13:32:22 +04:00
|
|
|
$('#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);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|