From: Olivier Lamy Date: Mon, 2 Apr 2012 12:38:59 +0000 (+0000) Subject: correctly display spinner when loading legacy artifact paths X-Git-Tag: archiva-1.4-M3~868 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0b32963daf0ea7dadeed23adc2e56526c384c0b;p=archiva.git correctly display spinner when loading legacy artifact paths git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308323 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js index a66073d5c..1ee371fff 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js @@ -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);