mirror of https://github.com/apache/archiva.git
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:
parent
280635dad9
commit
0638fbf4b1
|
@ -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");
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue