- displayGroupDetail=function(groupId,parentGroupdId){
+ displayGroupDetail=function(groupId,parentGroupdId,restUrl){
var mainContent = $("#main-content");
var browseResult=mainContent.find("#browse_result");
var browseBreadCrumb=mainContent.find("#browse_breadcrumb");
browseResult.html(mediumSpinnerImg());
browseBreadCrumb.html(smallSpinnerImg());
mainContent.find("#main_browse_result_content" ).show();
- var url = "restServices/archivaServices/browseService/browseGroupId/"+encodeURIComponent(groupId);
+ var url = restUrl ? restUrl : "restServices/archivaServices/browseService/browseGroupId/"+encodeURIComponent(groupId);
$.ajax(url, {
type: "GET",
dataType: 'json',
});
}
);
+ }
+ browseRoot=function(){
+ displayGroupDetail(null,null,"restServices/archivaServices/browseService/rootGroups");
}
/**
<script id="browse-breadcrumb-tmpl" type="text/html">
<ul class="breadcrumb">
- <li><a href="#"><i class="icon-home"/> </a> <span class="divider">/</span></li>
+ <li><a href="#" data-bind="click: function(){ browseRoot()}"><i class="icon-home"/> </a> <span class="divider">/</span></li>
<li><a href="#">org</a> <span class="divider">/</span></li>
</ul>
</script>
\ No newline at end of file