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

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

index 1ee371fffc435700f76248621d069fb925acbdb7..1513a7e444e6d1b045a8b3b5f540f047ad535caa 100644 (file)
@@ -540,12 +540,13 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
   displayNetworkConfiguration=function(){
     screenChange();
     var mainContent=$("#main-content");
-    mainContent.html($("#network-configuration-screen").tmpl());
+    mainContent.html(mediumSpinnerImg());
 
     $.ajax("restServices/archivaServices/archivaAdministrationService/getNetworkConfiguration", {
         type: "GET",
         dataType: 'json',
         success: function(data){
+          mainContent.html($("#network-configuration-screen").tmpl());
           var networkConfiguration=new NetworkConfiguration(data.maxTotal,data.maxTotalPerHost,data.usePooling);
           var networkConfigurationViewModel=new NetworkConfigurationViewModel(networkConfiguration);
           ko.applyBindings(networkConfigurationViewModel,mainContent.get(0));
@@ -807,12 +808,13 @@ define("archiva.general-admin",["jquery","i18n","order!utils","order!jquery.tmpl
   displayAppearanceConfiguration=function(){
     screenChange();
     var mainContent=$("#main-content");
-    mainContent.html($("#changeAppearance").tmpl());
+    mainContent.html(mediumSpinnerImg());
 
     $.ajax("restServices/archivaServices/archivaAdministrationService/getOrganisationInformation", {
       type: "GET",
       dataType: 'json',
       success: function(data) {
+        mainContent.html($("#changeAppearance").tmpl());
         var organisationInformation=new OrganisationInformation(data.name,data.url,data.logoLocation);
         var organisationInformationViewModel=new OrganisationInformationViewModel(organisationInformation);
         ko.applyBindings(organisationInformationViewModel, mainContent.get(0));