mirror of https://github.com/apache/archiva.git
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:
parent
12d7119297
commit
75067def20
|
@ -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");
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue