improve authentication

This commit is contained in:
Sebastian Sdorra
2010-09-09 18:35:54 +02:00
parent b0f637e203
commit 6a92e0e78e
7 changed files with 59 additions and 25 deletions

View File

@@ -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);
}
});
}