diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java index 3d18e730e..490a6f570 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java @@ -216,6 +216,7 @@ public class DefaultManagedRepositoriesService snippet.append( " <" ).append( distRepoName ).append( ">\n" ); snippet.append( " " ).append( repo.getId() ).append( "\n" ); + snippet.append( " " ); snippet.append( getBaseUrl( httpServletRequest ) + "repository" ); snippet.append( "/" ).append( repo.getId() ).append( "/" ).append( "\n" ); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index a24c9ba68..5db7906fd 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -366,16 +366,14 @@ $(function() { showPomSnippet=function(managedRepository){ - + $("#managed-repositories-pom-snippet").html(mediumSpinnerImg()); + $('#managed-repositories-pom-snippet').show(); var url = "restServices/archivaServices/managedRepositoriesService/getPomSnippet/"+managedRepository.id(); $.ajax(url, { type: "GET", dataType: 'text', success: function(data) { - //var snippet='"; - //$("#managed-repositories-pom-snippet").html(snippet+"
"+data+"
"); $("#managed-repositories-pom-snippet").html($("#pom-snippet-tmpl").tmpl(data)); }, error: function(data) { @@ -383,7 +381,7 @@ $(function() { displayRestError(res); }, complete: function(){ - } + } } ); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html index 80502b6b3..66d3fa885 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html @@ -266,7 +266,9 @@ \ No newline at end of file