AMBARI-19303. Dependent configurations are not loaded if value is set via "Set recommended" button (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0a9ae754 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0a9ae754 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0a9ae754 Branch: refs/heads/branch-2.5 Commit: 0a9ae7544051ffffe7906f76b63b8d031ba6c7e3 Parents: 8c875cf Author: Alex Antonenko <[email protected]> Authored: Thu Dec 29 16:37:10 2016 +0200 Committer: Alex Antonenko <[email protected]> Committed: Thu Dec 29 16:37:10 2016 +0200 ---------------------------------------------------------------------- ambari-web/app/views/common/controls_view.js | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/0a9ae754/ambari-web/app/views/common/controls_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js index 545e196..dc91f36 100644 --- a/ambari-web/app/views/common/controls_view.js +++ b/ambari-web/app/views/common/controls_view.js @@ -155,24 +155,12 @@ App.SupportsDependentConfigs = Ember.Mixin.create({ */ App.ValueObserver = Em.Mixin.create(App.SupportsDependentConfigs, { - selected: false, - - focusOut: function () { - this.set('selected', false); - }, - - focusIn: function () { - this.set('selected', true); - }, - onValueUpdate: function () { - if (this.get('selected')) { - var self = this, config = this.get('serviceConfig'), - controller = this.get('controller'); - delay(function(){ - self.sendRequestRorDependentConfigs(config, controller); - }, 500); - } + var self = this, config = this.get('serviceConfig'), + controller = this.get('controller'); + delay(function(){ + self.sendRequestRorDependentConfigs(config, controller); + }, 500); }.observes('serviceConfig.value') });
