ResetPwdModule.js 1023 Bytes
/**
  * 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;
	}
});