Repository: ambari Updated Branches: refs/heads/trunk e52fbc3a8 -> 1a03354c9
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/1a03354c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1a03354c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1a03354c Branch: refs/heads/trunk Commit: 1a03354c9c44e85ae89fa7786eb61a1515f7cd41 Parents: e52fbc3 Author: Oleg Nechiporenko <[email protected]> Authored: Tue Feb 14 16:39:33 2017 +0200 Committer: Oleg Nechiporenko <[email protected]> Committed: Wed Feb 15 10:26:22 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/1a03354c/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 9158e59..ce03014 100644 --- a/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js +++ b/ambari-web/app/views/main/dashboard/widgets/supervisor_live.js @@ -52,7 +52,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') });
