Files
beef/public/javascript/ui/panel/ZombieTab.js
vitaly.osipov@gmail.com 3a13a67498 fixes issue 132
git-svn-id: https://beef.googlecode.com/svn/trunk@664 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-01-04 04:25:10 +00:00

32 lines
683 B
JavaScript

ZombieTab = function(zombie) {
main_tab = new ZombieTab_DetailsTab(zombie);
log_tab = new ZombieTab_LogTab(zombie);
commands_tab = new ZombieTab_Commands(zombie);
requester_tab = new ZombieTab_Requester(zombie);
//-------------------------------------------
ZombieTab.superclass.constructor.call(this, {
id: zombie.session,
activeTab: 0,
loadMask: {msg:'Loading browser...'},
title: zombie.ip,
autoScroll: true,
closable: true,
viewConfig: {
forceFit: true,
type: 'fit'
},
items:[main_tab, log_tab, commands_tab, requester_tab]
});
};
Ext.extend(ZombieTab, Ext.TabPanel, {
listeners: {
close: function(panel) {
panel.destroy();
}
}
});