really correctly go to welcome on logout

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-22 16:35:48 +00:00
parent 4e4d09901f
commit ac6dc59b94
1 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,8 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
function(){
// go to welcome on logout
//window.sammyArchivaApplication.setLocation("#welcome");
$.log("displayWelcome");
//$.log("displayWelcome");
window.sammyArchivaApplication.setLocation("#welcome");
displayWelcome();
}
);
@ -744,11 +745,10 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
};
displayWelcome=function(){
$.log("#welcome hash");
checkCreateAdminLink(function(){
window.sammyArchivaApplication.setLocation("#welcome");
//$("#main-content" ).html($("#welcome" ).tmpl({runtimeInfo: window.archivaRuntimeInfo}));
//drawQuickSearchAutocomplete("#quick-search-autocomplete-welcome");
//window.sammyArchivaApplication.setLocation("#search")
$("#main-content" ).html($("#welcome" ).tmpl({runtimeInfo: window.archivaRuntimeInfo}));
drawQuickSearchAutocomplete("#quick-search-autocomplete-welcome");
});
}