mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
36 lines
694 B
JavaScript
36 lines
694 B
JavaScript
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
var debug = true;
|
|
var state = null;
|
|
|
|
// functions called after login
|
|
var authCallbacks = [];
|
|
|
|
// config form panels
|
|
var repositoryConfigPanels = [];
|
|
|
|
function registerConfigPanel(panel){
|
|
repositoryConfigPanels.push( panel );
|
|
}
|
|
|
|
var repositoryTypeStore = new Ext.data.JsonStore({
|
|
id: 1,
|
|
fields: [ 'displayName', 'name' ]
|
|
});
|
|
|
|
var restUrl = "api/rest/";
|
|
|
|
function loadState(s){
|
|
state = s;
|
|
console.debug( s );
|
|
repositoryTypeStore.loadData(state.repositoryTypes);
|
|
Ext.each(authCallbacks, function(callback){
|
|
if ( Ext.isFunction(callback) ){
|
|
callback(state);
|
|
}
|
|
});
|
|
}
|