ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiw...@apache.org
Subject ambari git commit: AMBARI-11895. Widgets: Aggregation defaults to avg after selecting a Metric.(xiwang)
Date Sat, 13 Jun 2015 00:18:46 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 f9312976b -> 033ea9c87


AMBARI-11895. Widgets: Aggregation defaults to avg after selecting a Metric.(xiwang)


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

Branch: refs/heads/branch-2.1
Commit: 033ea9c87b6fb7bbc598658d80eb8cb9ddc0bfd8
Parents: f931297
Author: Xi Wang <xiwang@apache.org>
Authored: Fri Jun 12 13:27:03 2015 -0700
Committer: Xi Wang <xiwang@apache.org>
Committed: Fri Jun 12 17:18:24 2015 -0700

----------------------------------------------------------------------
 .../app/views/main/service/widgets/create/expression_view.js       | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/033ea9c8/ambari-web/app/views/main/service/widgets/create/expression_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/widgets/create/expression_view.js b/ambari-web/app/views/main/service/widgets/create/expression_view.js
index 7216dde..f5b6bc2 100644
--- a/ambari-web/app/views/main/service/widgets/create/expression_view.js
+++ b/ambari-web/app/views/main/service/widgets/create/expression_view.js
@@ -235,9 +235,7 @@ App.AddMetricExpressionView = Em.View.extend({
         }
         self.set('currentSelectedComponent.selectedMetric', selectedMetric);
         if (self.get('currentSelectedComponent.selectedAggregation') == Em.I18n.t('dashboard.widgets.wizard.step2.aggregateFunction.scanOps'))
{
-          var aggregatorId = "#" + self.get('currentSelectedComponent.aggregatorId');
           var defaultAggregator = self.get('parentView.AGGREGATE_FUNCTIONS')[0];
-          $(aggregatorId).val(1).trigger("chosen:updated");
           self.set('currentSelectedComponent.selectedAggregation', defaultAggregator);
         }
       }


Mime
View raw message