}
- findParentGroupId=function(browseViewModel){
- return browseViewModel.groupId;
- }
+
displayGroupDetail=function(groupId,parentBrowseViewModel,restUrl){
var mainContent = $("#main-content");
});
}
+ /**
+ * called if browser url contains queryParam browse=groupId
+ * @param groupId
+ */
+ displayBrowseGroupId=function(groupId){
+ clearUserMessages();
+ var mainContent = $("#main-content");
+ mainContent.html($("#browse-tmpl" ).tmpl());
+ mainContent.find("#browse_result").html(mediumSpinnerImg());
+ var parentBrowseViewModel=new BrowseViewModel(null,null,null);
+ displayGroupDetail(groupId,parentBrowseViewModel,null)
+ }
+
+ function BrowseResultEntry(a, b){
+
+ }
+
mapbrowseResultEntries=function(data){
if (data.browseResult && data.browseResult.browseResultEntries) {
return $.isArray(data.browseResult.browseResultEntries) ?
$("#users-view-tabs-li-user-edit").addClass("active");
}
- /**
- * not used as we don't have the mapping in web.xml
- * but why to handle such urls which go directly to a view
- */
- $(document).ready(function() {
- // url ends with /users/list
- // and current has archiva-manage-users karma
- // so display users list
- var pathContent = window.location.pathname.split("/");
- var usersIndex = $.inArray("users", pathContent);
- if (usersIndex>=0 && pathContent[usersIndex+1]=="list") {
- if ($.inArray("archiva-manage-users",window.redbackModel.operatioNames)>=0){
- displayUsersGrid();
- }
- }
- });