replace welcome tab with repository tab

This commit is contained in:
Sebastian Sdorra
2011-01-31 17:52:42 +01:00
parent 789dc427ff
commit d15d99dec3

View File

@@ -118,7 +118,7 @@ Ext.onReady(function(){
items: [{ items: [{
label: 'Repositories', label: 'Repositories',
fn: function(){ fn: function(){
addTabPanel('repositories', 'repositoryPanel', 'Repositories'); mainTabPanel.setActiveTab('repositories');
} }
}] }]
}); });
@@ -209,20 +209,18 @@ Ext.onReady(function(){
panel.doLayout(); panel.doLayout();
} }
function createWelcomePanel(){ function createRepositoryPanel(){
if ( debug ){ if ( debug ){
console.debug('create welcome tab'); console.debug('create repository panel');
} }
mainTabPanel.add({ mainTabPanel.add({
id: 'welcomeTab', id: 'repositories',
xtype: 'panel', xtype: 'repositoryPanel',
title: 'Welcome', title: 'Repositories',
hideMode: 'offsets', closeable: false,
bodyCssClass: 'x-panel-mc',
enableTabScroll: true,
autoScroll: true autoScroll: true
}); });
mainTabPanel.setActiveTab('welcomeTab'); mainTabPanel.setActiveTab('repositories');
} }
// register login callbacks // register login callbacks
@@ -230,6 +228,6 @@ Ext.onReady(function(){
// create menu // create menu
loginCallbacks.splice(0, 0, createMainMenu ); loginCallbacks.splice(0, 0, createMainMenu );
// add welcome tab // add welcome tab
loginCallbacks.push( createWelcomePanel ); loginCallbacks.push( createRepositoryPanel );
}); });