Project

General

Profile

« Previous | Next » 

Revision 1016

Added by Matthias almost 15 years ago

Added missing admin/settings/setting.js

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
25-June-2009 Matthias Gallas
15
+	Added missing admin/settings/setting.js
15 16
!	Changed name of classic theme from "classic" to "classic_theme"
16 17
+	Added output-filter warning to all language files
17 18
#	Fixed admintool jsadmin to get XHTML valid output (Thanks to Luisehahne)
trunk/wb/admin/settings/setting.js
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
		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
}
0 45

  

Also available in: Unified diff