ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiw...@apache.org
Subject [1/2] ambari git commit: AMBARI-11895. Widgets: Aggregation defaults to avg after selecting a Metric.(xiwang)
Date Sat, 13 Jun 2015 00:13:00 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 102ef9c43 -> b011588c6


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/39bdfbb6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/39bdfbb6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/39bdfbb6

Branch: refs/heads/trunk
Commit: 39bdfbb6c903bdb12f88990cc1daa1a16c10652b
Parents: 102ef9c
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 15:24:00 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/39bdfbb6/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