Commit 4342b8c724b7f468ac47266a2f6f7134f92ebbfd

Authored by Nathanael Jourdane
1 parent 784cf22c

Fix crash when load epn-tap module from amda tree

js/app/controllers/EpnTapModule.js
... ... @@ -68,10 +68,12 @@ Ext.define('amdaDesktop.EpnTapModule', {
68 68 *** Service filter events ***
69 69 ****************************/
70 70  
  71 + /**
  72 + Trigerred after the a click on the "Display EPN-TAP service" item from the an AMDA tree contextual menu.
  73 + */
71 74 createWindow: function (icon_id) {
72 75 this.callParent();
73   - this.epnTapPanel.setSize(800, 600);
74   -
  76 + Ext.getCmp('epntap-win').setSize(800, 600);
75 77 var icons_dic = {
76 78 'icon-mercury': ['ts', 'planet', 'mercury'],
77 79 'icon-venus': ['ts', 'planet', 'venus'],
... ... @@ -177,7 +179,8 @@ Ext.define('amdaDesktop.EpnTapModule', {
177 179 this.targetClassCB.disable();
178 180 this.targetClassCB.select(this.targetClassCB.getStore().getAt(0)['internalId']);
179 181 } else {
180   - this.targetClassCB.getStore().add({'id': 'all', 'name': this.allPrettify(productTypeDict[this.productTypeCB.value])});
  182 + // this.targetClassCB.getStore().add({'id': 'all', 'name': this.allPrettify(productTypeDict[this.productTypeCB.value])});
  183 + this.targetClassCB.getStore().add({'id': 'all', 'name': 'All'});
181 184 for (var i = 0; i < targetClasses.length; i++) {
182 185 this.targetClassCB.getStore().add({'id': targetClasses[i], 'name': this.prettify(targetClasses[i])});
183 186 }
... ...
js/app/views/EpnTapUI.js
... ... @@ -732,7 +732,11 @@ Ext.define(&#39;amdaUI.EpnTapUI&#39;, {
732 732 createServiceFilterPanel(),
733 733 createGridsPanel(),
734 734 createInfoPanel()
735   - ]
  735 + ],
  736 + listeners: {
  737 + 'beforerender': function(me) { Ext.getCmp('epntap-win').setPosition(100, 100);}
  738 + }
  739 +
736 740 };
737 741 Ext.apply(this, Ext.apply(arguments, myConf));
738 742 }
... ...