From 23435f4079b21cc1482860bead8ed2998d57bfdd Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Mon, 4 Apr 2011 10:19:05 +0000 Subject: [PATCH] (Fixes issue 167): welcome window is displayed only the first time a user opens a zombie command tab. git-svn-id: https://beef.googlecode.com/svn/trunk@846 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- public/javascript/ui/panel/tabs/ZombieTabCommands.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/javascript/ui/panel/tabs/ZombieTabCommands.js b/public/javascript/ui/panel/tabs/ZombieTabCommands.js index 86e48eca3..5f3b111fb 100644 --- a/public/javascript/ui/panel/tabs/ZombieTabCommands.js +++ b/public/javascript/ui/panel/tabs/ZombieTabCommands.js @@ -3,7 +3,6 @@ * Loaded in /ui/panel/index.html */ ZombieTab_Commands = function(zombie) { - var command_module_config = new Ext.Panel({ id: 'zombie-command-module-config-'+zombie.session, region: 'center', @@ -114,7 +113,13 @@ ZombieTab_Commands = function(zombie) { load: function(treeloader, node, response) { // Hide loading mask after tree is fully loaded treeloader.treeLoadingMask.hide(); - welcomeWindow.show(); + + if(Ext.get('welcomeWinShown') == null){ + welcomeWindow.show(); + // add a div in the header section, to prevent displaying the Welcome Window every time + // the module_tree_panel is loaded + Ext.DomHelper.append('header', {tag: 'div', id: 'welcomeWinShown'}); + } return true; } }