You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2016/04/19 13:42:10 UTC
ambari git commit: AMBARI-15948. Fix bugs with config groups
restoring after next/back actions (akovalenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 8aac6a10b -> 5c6bb4e4c
AMBARI-15948. Fix bugs with config groups restoring after next/back actions (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5c6bb4e4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5c6bb4e4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5c6bb4e4
Branch: refs/heads/trunk
Commit: 5c6bb4e4c296e35380441eb493e18fe4d7f65a40
Parents: 8aac6a1
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Mon Apr 18 20:58:03 2016 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Apr 19 13:55:39 2016 +0300
----------------------------------------------------------------------
.../views/main/service/manage_config_groups_view.js | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c6bb4e4/ambari-web/app/views/main/service/manage_config_groups_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/manage_config_groups_view.js b/ambari-web/app/views/main/service/manage_config_groups_view.js
index d4cb381..7517b43 100644
--- a/ambari-web/app/views/main/service/manage_config_groups_view.js
+++ b/ambari-web/app/views/main/service/manage_config_groups_view.js
@@ -93,18 +93,20 @@ App.MainServiceManageConfigGroupView = Em.View.extend({
this.get('controller').loadHosts();
},
- didInsertElement: function () {
- this.selectDefaultGroup();
- App.tooltip($('.properties-link'));
- App.tooltip($("[rel='button-info']"));
- App.tooltip($("[rel='button-info-dropdown']"), {placement: 'left'});
- },
-
willDestroyElement: function () {
this.get('controller.configGroups').clear();
this.get('controller.originalConfigGroups').clear();
},
+ showTooltip: function () {
+ if (!this.get('controller.isLoaded')) return false;
+ Em.run.next(function(){
+ App.tooltip($('.properties-link'));
+ App.tooltip($("[rel='button-info']"));
+ App.tooltip($("[rel='button-info-dropdown']"), {placement: 'left'});
+ });
+ }.observes('controller.isLoaded'),
+
/**
* Disable actions remove and rename for Default config group
* @method buttonObserver