displayRepositoriesGrid(function(managedRepositoriesViewModel){managedRepositoriesViewModel.editManagedRepositoryWithId(repositoryId)});
});
+ this.get("#repositorygroupedit/:groupId",function(){
+ var groupId=this.params.groupId;
+ $.log("edit repository group:"+groupId);
+ displayRepositoryGroups(function(repositoryGroupsViewModel){repositoryGroupsViewModel.editRepositoryGroupWithId(groupId)});
+
+ });
+
+
});
};
});
}
+ this.editRepositoryGroupWithId=function(repositoryGroupId){
+
+ $.each(self.repositoryGroups(), function(index, value) {
+ if(value.id()==repositoryGroupId){
+ self.editRepositoryGroup(value);
+ }
+ });
+ }
+
this.saveRepositoryGroup=function(repositoryGroup){
clearUserMessages();
$("#user-messages").html(mediumSpinnerImg());
}
- displayRepositoryGroups=function(){
+ displayRepositoryGroups=function(successFn){
screenChange();
var mainContent = $("#main-content");
mainContent.html(mediumSpinnerImg());
});
+ if(successFn){
+ successFn(self.repositoryGroupsViewModel);
+ }
+
}
}
);