remove repositoryTypes from sonia.global.js

This commit is contained in:
Sebastian Sdorra
2010-11-04 19:41:07 +01:00
parent 7b1e6760d2
commit f2d8ac31bb
2 changed files with 13 additions and 9 deletions

View File

@@ -39,12 +39,6 @@ var loginCallbacks = [];
// function called after logout
var logoutCallbacks = [];
// TODO: move to sonia.repository.js
var repositoryTypeStore = new Ext.data.JsonStore({
id: 1,
fields: [ 'displayName', 'name' ]
});
var restUrl = "api/rest/";
function loadState(s){
@@ -52,8 +46,6 @@ function loadState(s){
console.debug( s );
}
state = s;
// load repository types from callback
repositoryTypeStore.loadData(state.repositoryTypes);
// call login callback functions
Ext.each(loginCallbacks, function(callback){
if ( Ext.isFunction(callback) ){

View File

@@ -90,7 +90,19 @@ Ext.onReady(function(){
}
});
// methods called after login
// adds a tab to main TabPanel
function addTabPanel(id, xtype, title){
mainTabPanel.add({
id: id,
xtype: xtype,
title: title,
closable: true,
autoScroll: true
});
mainTabPanel.setActiveTab(id);
}
// methods called after login
function createMainMenu(){
if ( debug ){