ResetPwdModule.js
1023 Bytes
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
45
46
47
48
49
/**
* Project : AMDA-NG
* Name : ResetPwdModule.js
* @plugin amdaDesktop.ResetPwdModule
* @extends amdaDesktop.AmdaModule
* @brief Reset password controller
* @author Benjamin
* @version $Id: ResetPwdModule.js 965 2024-09-19 16:05:30Z benjamin $
*/
Ext.define('amdaDesktop.ResetPwdModule', {
extend: 'amdaDesktop.AmdaModule',
requires : [
'amdaUI.ResetPwdUI'
],
contentId : 'resetpwdUI',
width : 600,
height : 280,
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow(this.id);
if(!win){
win = desktop.createWindow({
id: this.id,
title:this.title,
layout: 'fit',
width: this.width,
height: this.height,
minHeight: this.height,
modal: true,
iconCls: this.icon,
animCollapse:false,
constrainHeader:true,
bodyPadding : 5,
stateful : false,
items : [{
xtype: 'panelResetPwd'
}]
});
}
win.show();
return win;
}
});