(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
This commit is contained in:
antisnatchor
2011-04-04 10:19:05 +00:00
parent f040baf8df
commit 23435f4079

View File

@@ -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;
}
}