Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05E7210AF9 for ; Wed, 31 Jul 2013 18:29:39 +0000 (UTC) Received: (qmail 10074 invoked by uid 500); 31 Jul 2013 18:29:38 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 10019 invoked by uid 500); 31 Jul 2013 18:29:38 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 10009 invoked by uid 99); 31 Jul 2013 18:29:37 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 18:29:37 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A18B9831ACD; Wed, 31 Jul 2013 18:29:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: yusaku@apache.org To: ambari-commits@incubator.apache.org Message-Id: <068ab840fa9e4ad48ae9b72b1abb3a37@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: AMBARI-2780. Tooltips for service and service summary show a different info. (Andrii Babiichuk via yusaku) Date: Wed, 31 Jul 2013 18:29:37 +0000 (UTC) Updated Branches: refs/heads/trunk 242a0227e -> 2b09e3261 AMBARI-2780. Tooltips for service and service summary show a different info. (Andrii Babiichuk via yusaku) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/2b09e326 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/2b09e326 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/2b09e326 Branch: refs/heads/trunk Commit: 2b09e326180c9292a0327938bd1ff1aa73ab0f4c Parents: 242a022 Author: Yusaku Sako Authored: Wed Jul 31 11:29:28 2013 -0700 Committer: Yusaku Sako Committed: Wed Jul 31 11:29:28 2013 -0700 ---------------------------------------------------------------------- ambari-web/app/views/main/dashboard/service.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2b09e326/ambari-web/app/views/main/dashboard/service.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/dashboard/service.js b/ambari-web/app/views/main/dashboard/service.js index 1753f46..e736351 100644 --- a/ambari-web/app/views/main/dashboard/service.js +++ b/ambari-web/app/views/main/dashboard/service.js @@ -28,13 +28,15 @@ App.MainDashboardServiceHealthView = Em.View.extend({ tagName: 'span', attributeBindings:['rel', 'title','data-original-title'], rel: 'HealthTooltip', - 'data-original-title': function(){ + 'data-original-title': '', + + getHostComponentStatus: function(){ var popupText = ""; this.get("service").get("hostComponents").filterProperty('isMaster', true).forEach(function(item){ popupText += item.get("displayName") + " " + item.get("componentTextStatus") + "
"; }); - return popupText; - }.property('service.healthStatus'), + this.set('data-original-title',popupText); + }.observes('service.hostComponents.@each.workStatus'), /** * When set to true, extending classes should @@ -88,6 +90,7 @@ App.MainDashboardServiceHealthView = Em.View.extend({ }.property('service.healthStatus'), didInsertElement: function () { + this.getHostComponentStatus(); $("[rel='HealthTooltip']").tooltip(); this.doBlink(); // check for blink availability }