Repository: ambari
Updated Branches:
  refs/heads/trunk 0564f0c3b -> db47268f6


AMBARI-11035. Configs: invalid input should not be allowed


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

Branch: refs/heads/trunk
Commit: db47268f675a9c35da017bd260f77de4b96d4a6a
Parents: 8df37d1
Author: Srimanth Gunturi <[email protected]>
Authored: Fri May 8 13:20:00 2015 -0700
Committer: Srimanth Gunturi <[email protected]>
Committed: Fri May 8 14:10:06 2015 -0700

----------------------------------------------------------------------
 .../app/views/common/configs/widgets/plain_config_text_field.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/db47268f/ambari-web/app/views/common/configs/widgets/plain_config_text_field.js
----------------------------------------------------------------------
diff --git 
a/ambari-web/app/views/common/configs/widgets/plain_config_text_field.js 
b/ambari-web/app/views/common/configs/widgets/plain_config_text_field.js
index 3ac96cd..27d6b3b 100644
--- a/ambari-web/app/views/common/configs/widgets/plain_config_text_field.js
+++ b/ambari-web/app/views/common/configs/widgets/plain_config_text_field.js
@@ -35,6 +35,11 @@ App.PlainConfigTextField = 
Ember.View.extend(App.SupportsDependentConfigs, {
 
   focusOut: function () {
     this.sendRequestRorDependentConfigs(this.get('serviceConfig'));
+  },
+
+  didInsertElement: function() {
+    this._super();
+    this.set('serviceConfig.displayType', Em.getWithDefault(this, 
'serviceConfig.stackConfigProperty.valueAttributes.type', 'string'));
   }
 
 });

Reply via email to