display search or checkUrl param even if user not logged in

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1296963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-05 08:44:37 +00:00
parent ea1d50853f
commit ca9aa5edf2
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,8 @@ $(function() {
if (browse){
displayBrowseGroupId(browse);
return;
}else{
$.log("no browse");
}
var screen = $.urlParam('screen');
@ -93,6 +95,7 @@ $(function() {
decorateMenuWithKarma=function(user) {
var username = user.username;
$.log("decorateMenuWithKarma");
// we can receive an observable user so take if it's a function or not
if ($.isFunction(username)){
username = user.username();
@ -154,6 +157,7 @@ $(function() {
$("#login-link").show();
$("#register-link").show();
$("#change-password-link").hide();
checkUrlParams();
} else {
$("#change-password-link").show();
$("#logout-link").show();

View File

@ -283,6 +283,7 @@ $(function() {
*/
displayBrowseGroupId=function(groupId){
clearUserMessages();
$.log("displayBrowseGroupId:"+groupId);
var mainContent = $("#main-content");
mainContent.html($("#browse-tmpl" ).tmpl());
mainContent.find("#browse_result").html(mediumSpinnerImg());