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
|
// cleanup karmas
|
||||||
window.redbackModel.operatioNames=[];
|
window.redbackModel.operatioNames=[];
|
||||||
hideElementWithKarma();
|
hideElementWithKarma();
|
||||||
if (doScreenChange) {
|
|
||||||
screenChange();
|
|
||||||
}
|
|
||||||
$("#main-content").html("");
|
$("#main-content").html("");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'restServices/redbackServices/loginService/logout',
|
url: 'restServices/redbackServices/loginService/logout',
|
||||||
complete: function(){
|
complete: function(){
|
||||||
if(!doScreenChange){
|
// go to welcome on logout
|
||||||
// refresh the screen as no more karmas now
|
window.sammyArchivaApplication.runRoute('get', '#search')
|
||||||
window.sammyArchivaApplication.refresh();
|
window.sammyArchivaApplication.setLocation("#welcome");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue