call hash entry point #search

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-13 22:10:27 +00:00
parent 280635dad9
commit 0638fbf4b1
1 changed files with 3 additions and 4 deletions

View File

@ -283,8 +283,7 @@ function(jquery,ui,sammy,tmpl) {
//searchRequest.selectedRepoIds=repos;
searchViewModel.searchRequest(searchRequest);
displaySearch(function(){
searchViewModel.search("restServices/archivaServices/searchService/searchArtifacts",repos);//,repositoryIds);
searchViewModel.search("restServices/archivaServices/searchService/searchArtifacts",repos);
},searchViewModel);
};
@ -585,7 +584,7 @@ function(jquery,ui,sammy,tmpl) {
}
});
});
//this.get('', function () { this.app.runRoute('get', '#search') });
this.get('#welcome', function () { this.app.runRoute('get', '#search') });
});
};
@ -652,7 +651,7 @@ function(jquery,ui,sammy,tmpl) {
$.log("location:"+window.sammyArchivaApplication.getLocation()+",hash:"+hash);
// by default display search screen
if(!hash){
window.sammyArchivaApplication.setLocation("#search");
window.sammyArchivaApplication.setLocation("#welcome");
}
};