Project

General

Profile

1
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
	} else if(type == 'phpmail') {
21
		document.getElementById('row_wbmailer_smtp_settings').style.display = 'none';
22
		document.getElementById('row_wbmailer_smtp_host').style.display = 'none';
23
		document.getElementById('row_wbmailer_smtp_auth_mode').style.display = 'none';
24
		document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
25
		document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
26
	}
27
}
28
/*  */
29
function toggle_wbmailer_auth() {
30
		document.getElementById('row_wbmailer_smtp_username').style.display = '';
31
		document.getElementById('row_wbmailer_smtp_password').style.display = '';
32
		document.settings.wbmailer_smtp_auth.checked == true;
33
/*
34
	if( document.settings.wbmailer_smtp_auth.checked == true ) {
35
		document.getElementById('row_wbmailer_smtp_username').style.display = '';
36
		document.getElementById('row_wbmailer_smtp_password').style.display = '';
37
	} else {
38
		document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
39
		document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
40
	}
41
*/
42
}
(3-3/3)