You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/01/02 17:51:13 UTC

ambari git commit: AMBARI-8974. Incorrect validation of 'Hadoop maximum Java heap size' field on Customize Services page (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 7d299d0c6 -> 2bae0bb28


AMBARI-8974. Incorrect validation of 'Hadoop maximum Java heap size' field on Customize Services page (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 2bae0bb28fb98659954c4e463bd567f9af6eaed2
Parents: 7d299d0
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Jan 2 18:26:12 2015 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Fri Jan 2 18:26:12 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/views/wizard/controls_view.js | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2bae0bb2/ambari-web/app/views/wizard/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/wizard/controls_view.js b/ambari-web/app/views/wizard/controls_view.js
index 0f59c51..ba60a8d 100644
--- a/ambari-web/app/views/wizard/controls_view.js
+++ b/ambari-web/app/views/wizard/controls_view.js
@@ -104,21 +104,15 @@ App.ServiceConfigTextField = Ember.TextField.extend(App.ServiceConfigPopoverSupp
 });
 
 /**
- * Customized input control with Utits type specified
- * @type {*}
+ * Customized input control with Units type specified
+ * @type {Em.View}
  */
 App.ServiceConfigTextFieldWithUnit = Ember.View.extend(App.ServiceConfigPopoverSupport, {
   valueBinding: 'serviceConfig.value',
   classNames: ['input-append', 'with-unit'],
   placeholderBinding: 'serviceConfig.defaultValue',
 
-  templateName: require('templates/wizard/controls_service_config_textfield_with_unit'),
-
-  elementId: Ember.computed(function(){
-    var label = Em.get(this, 'serviceConfig.name') ? Em.get(this, 'serviceConfig.name').toLowerCase().replace(/\./g, '-') : "",
-      fileName = Em.get(this, 'serviceConfig.filename') ? Em.get(this, 'serviceConfig.filename').toLowerCase().replace(/\./g, '-') : "";
-    return 'service-config-' + label + "-" + fileName;
-  })
+  templateName: require('templates/wizard/controls_service_config_textfield_with_unit')
 });
 
 /**