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