ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-10721 Create widget wizard->Add metric popup: Saving a selected metric throws JS error. (atkach)
Date Fri, 24 Apr 2015 09:48:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 14cbdabe7 -> 3f06d298d


AMBARI-10721 Create widget wizard->Add metric popup: Saving a selected metric throws JS
error. (atkach)


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

Branch: refs/heads/trunk
Commit: 3f06d298d9ea5d862c500b8a6549ce5bb5267ffa
Parents: 14cbdab
Author: Andrii Tkach <atkach@hortonworks.com>
Authored: Fri Apr 24 12:00:49 2015 +0300
Committer: Andrii Tkach <atkach@hortonworks.com>
Committed: Fri Apr 24 12:00:49 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/3f06d298/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 1899daa..43c68c4 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
@@ -188,13 +188,13 @@ App.WidgetWizardExpressionView = Em.View.extend({
             placeholder_text: Em.I18n.t('widget.create.wizard.step2.noMetricFound'),
             no_results_text: Em.I18n.t('widget.create.wizard.step2.noMetricFound')
           }).change(function (event, obj) {
-            self.set('parentView.selectedMetric', {
+            self.set('parentView.selectedMetric', Em.Object.create({
               name: obj.selected,
               componentName: self.get('selectedComponent.componentName'),
               serviceName: self.get('selectedComponent.serviceName'),
               metricPath: self.get('controller.filteredMetrics').findProperty('name', obj.selected).widget_id,
               isMetric: true
-            });
+            }));
           });
         },
 


Mime
View raw message