ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-6272. Add Service wizard shouldn't show Save Configs popup on deploy. (akovalenko)
Date Wed, 25 Jun 2014 17:46:12 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.1 709649cef -> 26512c884


AMBARI-6272. Add Service wizard shouldn't show Save Configs popup on deploy. (akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/26512c88
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/26512c88
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/26512c88

Branch: refs/heads/branch-1.6.1
Commit: 26512c8846e4f0e8077b393376c00b48d1b4ed3d
Parents: 709649c
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Wed Jun 25 20:45:30 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Wed Jun 25 20:45:40 2014 +0300

----------------------------------------------------------------------
 .../app/controllers/main/service/info/configs.js | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/26512c88/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js
index e119397..92a2519 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -818,7 +818,7 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
           "hosts": groupHosts,
           "desired_configs": this.buildGroupDesiredConfigs(overridenConfigs)
         }
-      });
+      }, true);
     }
   },
 
@@ -1057,18 +1057,23 @@ App.MainServiceInfoConfigsController = Em.Controller.extend({
   },
   /**
    * persist properties of config groups to server
-   * @param data
+   * show result popup if <code>showPopup</code> is true
+   * @param data {Object}
+   * @param showPopup {Boolean}
    */
-  putConfigGroupChanges: function (data) {
-    App.ajax.send({
+  putConfigGroupChanges: function (data, showPopup) {
+    var ajaxOptions = {
       name: 'config_groups.update_config_group',
       sender: this,
       data: {
         id: data.ConfigGroup.id,
         configGroup: data
-      },
-      success: "putConfigGroupChangesSuccess"
-    });
+      }
+    };
+    if (showPopup) {
+      ajaxOptions.success = "putConfigGroupChangesSuccess";
+    }
+    App.ajax.send(ajaxOptions);
   },
 
   putConfigGroupChangesSuccess: function () {


Mime
View raw message