]> source.dussan.org Git - archiva.git/commitdiff
correctly display spinner when loading legacy artifact paths
authorOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 12:38:59 +0000 (12:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 12:38:59 +0000 (12:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308323 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js

index a66073d5c6c230c4a280dfb293b9be0f5db2b914..1ee371fffc435700f76248621d069fb925acbdb7 100644 (file)
@@ -241,13 +241,13 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
   displayLegacyArtifactPathSupport=function(){
     clearUserMessages();
     var mainContent=$("#main-content");
-
-    mainContent.html($("#legacy-artifact-path-main").tmpl());
+    mainContent.html(mediumSpinnerImg());
 
     $.ajax("restServices/archivaServices/archivaAdministrationService/getLegacyArtifactPaths", {
         type: "GET",
         dataType: 'json',
         success: function(data){
+          mainContent.html($("#legacy-artifact-path-main").tmpl());
           var legacyArtifactPathsViewModel=new LegacyArtifactPathsViewModel();
           var legacyPaths=mapLegacyArtifactPaths(data);
           $.log("legacyPaths:"+legacyPaths.length);