ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-20011. JS error in the "Supervisors Live" widget (onechiporenko)
Date Wed, 15 Feb 2017 08:48:27 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 baae985a6 -> 5809d4fe3


AMBARI-20011. JS error in the "Supervisors Live" widget (onechiporenko)


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

Branch: refs/heads/branch-2.5
Commit: 5809d4fe3885c5d6c58883723289e5f5263dd244
Parents: baae985
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Tue Feb 14 16:39:33 2017 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Wed Feb 15 10:48:19 2017 +0200

----------------------------------------------------------------------
 ambari-web/app/views/main/dashboard/widgets/supervisor_live.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5809d4fe/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js b/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js
index b8e36ca..0543f6f 100644
--- a/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js
+++ b/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js
@@ -59,7 +59,6 @@ App.SuperVisorUpView = App.TextDashboardWidgetView.extend(App.EditableWithLimitW
   }.property('superVisorsLive', 'superVisorsTotal'),
 
   hintInfo: function () {
-    var maxTmp = parseFloat(parent.get('maxValue'));
-    return Em.I18n.t('dashboard.widgets.hintInfo.hint1').format(maxTmp);
+    return Em.I18n.t('dashboard.widgets.hintInfo.hint1').format(parseFloat(this.get('maxValue')));
   }.property('maxValue')
 });


Mime
View raw message