/
accounteditor.js
executable file
·44 lines (40 loc) · 1.14 KB
/
accounteditor.js
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* CaMykS Engine
* Developed by : Ideogram Design
* Author : JB Lebrun <jb.lebrun@ideogram-design.fr>
* CaMykS Version : 1.0b
* Object Version : 1.0
* Object Type : Plugin / Module Javascript
* Creation Date : Feb 2010
* Last Modif Date : Feb 2010
*
* UsersManager Account Editor scripts
*/
function AccountEditor(name, form) {
this._name = name;
this._form = form;
this._passwordPanel = null;
/*
* initialisation method
* @return void
* @access public
*/
this.initialise = function() {
/* get form object */
this._form = eval('document.'+this._form);
/* get password panel element */
if (document.getElementById('password_panel'))
this._passwordPanel = document.getElementById('password_panel');
}
/*
* update password panel status
* return void
* @access public
*/
this.update_passwordPanel = function() {
/* get change password value */
change = this._form.change_password.options[this._form.change_password.options.selectedIndex].value;
if ( this._passwordPanel )
this._passwordPanel.style.display = (change==1?'block':'none');
}
}