added cancel button to login window

This commit is contained in:
Sebastian Sdorra
2011-02-10 20:37:22 +01:00
parent 0e8a6f8a79
commit ba6d44464e
3 changed files with 40 additions and 23 deletions

View File

@@ -70,25 +70,7 @@ Ext.onReady(function(){
]
});
// check login
Ext.Ajax.request({
url: restUrl + 'authentication.json',
method: 'GET',
success: function(response){
if ( debug ){
console.debug('login success');
}
var s = Ext.decode(response.responseText);
loadState(s);
},
failure: function(){
if ( debug ){
console.debug('login failed');
}
var loginWin = new Sonia.login.Window();
loginWin.show();
}
});
checkLogin();
// adds a tab to main TabPanel
function addTabPanel(id, xtype, title){