Blame view

js/app/controllers/FeedbackModule.js 994 Bytes
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
/**
  * Project      :  AMDA-NG
  * Name         : FeedbackModule.js
  * @plugin 	  amdaDesktop.FeedbackModule
  * @extends 	  amdaDesktop.AmdaModule
  * @brief		 Feedback controller
  * @author Benjamin
dcd07176   Elena.Budnik   Feedback manager
8
  * @version $Id: FeedbackModule.js 965 2012-06-28 16:05:30Z benjamin $        
16035364   Benjamin Renard   First commit
9
10
11
12
  */

Ext.define('amdaDesktop.FeedbackModule', {
		
dcd07176   Elena.Budnik   Feedback manager
13
14
15
16
17
	extend: 'amdaDesktop.AmdaModule',

	requires : [
		'amdaUI.FeedbackUI'
	],
16035364   Benjamin Renard   First commit
18
19
20
21
    
	contentId : 'feedUI',
    
	createWindow : function(){
dcd07176   Elena.Budnik   Feedback manager
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
		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: 600,
				height: 550,  
				modal: true,
				iconCls: this.icon,
				animCollapse:false,
				constrainHeader:true,
				bodyPadding : 5,
				stateful : true,
				stateId  : this.id,
				stateEvents: ['move','show','resize'],
				items : [{
					xtype: 'panelFeedback'
				}]
			});
		} 
		win.show();
		return win;
16035364   Benjamin Renard   First commit
47
48
	}
});