瀏覽代碼

AMBARI-6451 Remove synchronous calls that save configs in wizards. (atkach)

atkach 11 年之前
父節點
當前提交
eacdb2c462

+ 1 - 1
ambari-web/app/controllers/main/admin/highAvailability/progress_controller.js

@@ -178,7 +178,7 @@ App.HighAvailabilityProgressPageController = App.HighAvailabilityWizardControlle
       clusterState: this.get('clusterDeployState'),
       wizardControllerName: this.get('content.controllerName'),
       localdb: App.db.data
-    }, { async: true, success: 'statusChangeCallback', sender: this });
+    }, {success: 'statusChangeCallback', sender: this });
   },
   /**
    * Method that called after saving persist data to server.

+ 0 - 13
ambari-web/app/utils/ajax/ajax.js

@@ -834,7 +834,6 @@ var urls = {
     'type': 'PUT',
     'format': function (data) {
       return {
-        async: false,
         data: JSON.stringify({
           Clusters: {
             desired_config: {
@@ -880,18 +879,6 @@ var urls = {
       };
     }
   },
-  'admin.security.apply_configuration': {
-    'real': '/clusters/{clusterName}',
-    'mock': '',
-    'format': function(data) {
-      return {
-        type: 'PUT',
-        async: false,
-        timeout: 5000,
-        data: JSON.stringify(data.clusterData)
-      };
-    }
-  },
   'admin.security.add.cluster_configs': {
     'real': '/clusters/{clusterName}' + '?fields=Clusters/desired_configs',
     'mock': '',