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:48:04 UTC

ambari git commit: AMBARI-15948. Sometimes there is no tooltips on buttons in manage config groups popup (akovalenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 3c2492322 -> 8b92561fb


AMBARI-15948. Sometimes there is no tooltips on buttons in manage config groups popup (akovalenko)


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

Branch: refs/heads/trunk
Commit: 8b92561fb3b3c258d1644a0f4c29696771f878dd
Parents: 3c24923
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Tue Apr 19 14:47:39 2016 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Apr 19 14:47: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/8b92561f/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