summaryrefslogtreecommitdiffstats
path: root/core/js/setup.js
blob: b4616b8b14cf56756c9d4c8ec1753a214406b8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$(document).ready(function() {
	// Hide the MySQL config div if needed :
	if(!$('#mysql').is(':checked') && $('#hasSQLite').val()=='true') {
		$('#use_mysql').hide();
	}

	$('#datadirField').hide(250);
	if($('#hasSQLite').val()=='true'){
		$('#databaseField').hide(250);
	}

	$('#sqlite').click(function() {
		$('#use_mysql').slideUp(250);
	});

	$('#mysql').click(function() {
		$('#use_mysql').slideDown(250);
	});

	$('#showAdvanced').click(function() {
		$('#datadirField').slideToggle(250);
		if($('#hasSQLite').val()=='true'){
			$('#databaseField').slideToggle(250);
		}
	});
});