You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/12/29 14:39:49 UTC
[2/2] ambari git commit: AMBARI-19303. Dependent configurations are
not loaded if value is set via "Set recommended" button (alexantonenko)
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 <hi...@gmail.com>
Authored: Thu Dec 29 16:37:10 2016 +0200
Committer: Alex Antonenko <hi...@gmail.com>
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')
});