go to welcome on logout

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-14 09:28:55 +00:00
parent 12d7119297
commit 75067def20
1 changed files with 3 additions and 7 deletions

View File

@ -47,17 +47,13 @@ function(jquery,ui,sammy,tmpl) {
// cleanup karmas
window.redbackModel.operatioNames=[];
hideElementWithKarma();
if (doScreenChange) {
screenChange();
}
$("#main-content").html("");
$.ajax({
url: 'restServices/redbackServices/loginService/logout',
complete: function(){
if(!doScreenChange){
// refresh the screen as no more karmas now
window.sammyArchivaApplication.refresh();
}
// go to welcome on logout
window.sammyArchivaApplication.runRoute('get', '#search')
window.sammyArchivaApplication.setLocation("#welcome");
}
});