AMBARI-7171. No tooltip on final, override, and other icons in Customize 
Services page. (onechiporenko)


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

Branch: refs/heads/branch-alerts-dev
Commit: 19ea22e4149dd791ac84f58df117968d4dcbc19b
Parents: 0dd2063
Author: Oleg Nechiporenko <onechipore...@apache.org>
Authored: Fri Sep 5 16:39:42 2014 +0300
Committer: Oleg Nechiporenko <onechipore...@apache.org>
Committed: Fri Sep 5 16:39:42 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/services_config.js | 3 ++-
 ambari-web/app/views/wizard/controls_view.js           | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/19ea22e4/ambari-web/app/views/common/configs/services_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/services_config.js 
b/ambari-web/app/views/common/configs/services_config.js
index f54a554..1d8b5b1 100644
--- a/ambari-web/app/views/common/configs/services_config.js
+++ b/ambari-web/app/views/common/configs/services_config.js
@@ -448,7 +448,7 @@ App.ServiceConfigsByCategoryView = 
Ember.View.extend(App.UserPref, {
     } else {
       this.$('.accordion-body').show();
     }
-    $('body').tooltip({
+    $('#serviceConfig').tooltip({
       selector: '[data-toggle=tooltip]',
       placement: 'top'
     });
@@ -733,6 +733,7 @@ App.ServiceConfigsByCategoryView = 
Ember.View.extend(App.UserPref, {
       serviceConfigProperty.set('isFinal', defaultIsFinal);
     }
     this.miscConfigChange(serviceConfigProperty);
+    Em.$('body>.tooltip').remove(); //some tooltips get frozen when their 
owner's DOM element is removed
   },
 
   createOverrideProperty: function (event) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/19ea22e4/ambari-web/app/views/wizard/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/wizard/controls_view.js 
b/ambari-web/app/views/wizard/controls_view.js
index f42639d..6619179 100644
--- a/ambari-web/app/views/wizard/controls_view.js
+++ b/ambari-web/app/views/wizard/controls_view.js
@@ -32,6 +32,10 @@ App.ServiceConfigPopoverSupport = Ember.Mixin.create({
   isPopoverEnabled: true,
 
   didInsertElement: function () {
+    $('body').tooltip({
+      selector: '[data-toggle=tooltip]',
+      placement: 'top'
+    });
     // if description for this serviceConfig not exist, then no need to show 
popover
     if (this.get('isPopoverEnabled') !== 'false' && 
this.get('serviceConfig.description')) {
       App.popover(this.$(), {

Reply via email to