From 75067def2032846ed3bc4c4cccb5bc2ee6e7b7d8 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 14 Sep 2012 09:28:55 +0000 Subject: [PATCH] go to welcome on logout git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384698 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/main.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js index 47c831271..ca92250c2 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js @@ -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"); } });