Project

General

Profile

1 1457 Luisehahne
function change_os(type) {
2
	if(type == 'linux') {
3
		document.getElementById('file_perms_box1').style.display = 'block';
4
		document.getElementById('file_perms_box2').style.display = 'block';
5
		document.getElementById('file_perms_box3').style.display = 'block';
6
	} else if(type == 'windows') {
7
		document.getElementById('file_perms_box1').style.display = 'none';
8
		document.getElementById('file_perms_box2').style.display = 'none';
9
		document.getElementById('file_perms_box3').style.display = 'none';
10
	}
11
}
12
13
function change_wbmailer(type) {
14
	if(type == 'smtp') {
15
		document.getElementById('row_wbmailer_smtp_settings').style.display = '';
16
		document.getElementById('row_wbmailer_smtp_host').style.display = '';
17
		document.getElementById('row_wbmailer_smtp_auth_mode').style.display = '';
18
		document.getElementById('row_wbmailer_smtp_username').style.display = '';
19
		document.getElementById('row_wbmailer_smtp_password').style.display = '';
20
		if( document.settings.wbmailer_smtp_auth.checked == true ) {
21
			document.getElementById('row_wbmailer_smtp_username').style.display = '';
22
			document.getElementById('row_wbmailer_smtp_password').style.display = '';
23
		} else {
24
			document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
25
			document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
26
		}
27
	} else if(type == 'phpmail') {
28
		document.getElementById('row_wbmailer_smtp_settings').style.display = 'none';
29
		document.getElementById('row_wbmailer_smtp_host').style.display = 'none';
30
		document.getElementById('row_wbmailer_smtp_auth_mode').style.display = 'none';
31
		document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
32
		document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
33
	}
34
}
35
36
function toggle_wbmailer_auth() {
37
	if( document.settings.wbmailer_smtp_auth.checked == true ) {
38
		document.getElementById('row_wbmailer_smtp_username').style.display = '';
39
		document.getElementById('row_wbmailer_smtp_password').style.display = '';
40
	} else {
41
		document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
42
		document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
43
	}
44 1016 Ruebenwurz
}