mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
improve authentication
This commit is contained in:
@@ -4,14 +4,23 @@
|
||||
*/
|
||||
|
||||
var debug = true;
|
||||
|
||||
var state = null;
|
||||
|
||||
/*var repositoryTypes = [ ['Mercurial', 'hg'], ['Subversion','svn'], ['Git','git'] ];*/
|
||||
var authCallbacks = [];
|
||||
|
||||
var repositoryTypeStore = new Ext.data.JsonStore({
|
||||
id: 1,
|
||||
fields: [ 'displayName', 'name' ]
|
||||
});
|
||||
|
||||
var restUrl = "api/rest/";
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user