mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-09 22:00:20 +01:00
remove repositoryTypes from sonia.global.js
This commit is contained in:
@@ -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) ){
|
||||
|
||||
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user