aboutsummaryrefslogtreecommitdiffstats
path: root/js/js.js
blob: a6765ec62db90609e2923e5db794d580992a76c5 (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);
		}
	});
});