Repository: ambari Updated Branches: refs/heads/trunk b8eb0bb6a -> 20e214feb
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/20e214fe Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/20e214fe Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/20e214fe Branch: refs/heads/trunk Commit: 20e214feb0916b702d4756d8e3e92b3aa49371e4 Parents: b8eb0bb Author: Aleksandr Kovalenko <[email protected]> Authored: Wed Jun 25 20:41:34 2014 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Wed Jun 25 20:41:42 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/20e214fe/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 () {
