ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject git commit: AMBARI-7171. No tooltip on final, override, and other icons in Customize Services page. (onechiporenko)
Date Fri, 05 Sep 2014 13:41:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 0dd2063f1 -> 19ea22e41


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/trunk
Commit: 19ea22e4149dd791ac84f58df117968d4dcbc19b
Parents: 0dd2063
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Sep 5 16:39:42 2014 +0300
Committer: Oleg Nechiporenko <onechiporenko@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.$(), {


Mime
View raw message