Commit 6191b7edd3351e7a77e4986770940167ad4e71a4
1 parent
1d1abc4c
Exists in
master
and in
111 other branches
redmine #5507+
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
js/app/controllers/InteropModule.js
... | ... | @@ -324,7 +324,7 @@ Ext.define('amdaDesktop.InteropModule', { |
324 | 324 | return result; |
325 | 325 | }, |
326 | 326 | |
327 | - // arguments from launcher : CONFIG (OBJECT!!!) | |
327 | + // arguments from launcher : CONFIG (OBJECT!!!) | |
328 | 328 | createWindow : function(config){ |
329 | 329 | var me = this; |
330 | 330 | var baseId = null; |
... | ... | @@ -334,7 +334,7 @@ Ext.define('amdaDesktop.InteropModule', { |
334 | 334 | var activeTab = 1; |
335 | 335 | } |
336 | 336 | else { |
337 | - var activeTab = ('activeTab' in config) ? config['activeTab'] : 1; | |
337 | + var activeTab = 'activeTab' in config ? config['activeTab'] : 1; | |
338 | 338 | } |
339 | 339 | var desktop = this.app.getDesktop(); |
340 | 340 | var win = desktop.getWindow(this.id); |
... | ... | @@ -372,8 +372,8 @@ Ext.define('amdaDesktop.InteropModule', { |
372 | 372 | activeTab : activeTab, |
373 | 373 | baseId : baseId, |
374 | 374 | loadTab: function(tab) { |
375 | - if(tab['id'] === 'epntapTab') { | |
376 | - me.loadEpnTap(config && 'epntapFilter' in config ? config['epntapFilter']: false); | |
375 | + if(tab['id'] === 'epntapTab') { | |
376 | + me.loadEpnTap(Ext.isObject(config) && 'epntapFilter' in config ? config['epntapFilter']: false); | |
377 | 377 | } |
378 | 378 | }, |
379 | 379 | onSwitchConnect : function () |
... | ... | @@ -383,7 +383,7 @@ Ext.define('amdaDesktop.InteropModule', { |
383 | 383 | }] |
384 | 384 | }); |
385 | 385 | } else if(activeTab == 2) { |
386 | - me.loadEpnTap(config && 'epntapFilter' in config ? config['epntapFilter']: false); | |
386 | + me.loadEpnTap(Ext.isObject(config) && 'epntapFilter' in config ? config['epntapFilter']: false); | |
387 | 387 | } |
388 | 388 | |
389 | 389 | if (me.samp && me.samp.ready) |
... | ... |