You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2015/04/21 06:34:16 UTC
ambari git commit: AMBARI-10619. Clicking on text area of combo
should drop down entries (Richard Zang via srimanth)
Repository: ambari
Updated Branches:
refs/heads/trunk 4063af87c -> 54c5fbe17
AMBARI-10619. Clicking on text area of combo should drop down entries (Richard Zang via srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/54c5fbe1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/54c5fbe1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/54c5fbe1
Branch: refs/heads/trunk
Commit: 54c5fbe17b7a72f85bb318e22d81bab88e84aa35
Parents: 4063af8
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Mon Apr 20 21:32:27 2015 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Mon Apr 20 21:32:27 2015 -0700
----------------------------------------------------------------------
.../common/configs/widgets/combo_config_widget_view.js | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/54c5fbe1/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
index bbeb99b..c6fdbd9 100644
--- a/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
@@ -113,6 +113,16 @@ App.ComboConfigWidgetView = App.ConfigWidgetView.extend({
restoreValue: function() {
this._super();
this.setConfigValue({ context: this.get('config.defaultValue') });
+ },
+
+ /**
+ * Delegate event from text input in combo widget to trigger dropdown
+ */
+ click: function(event) {
+ if (event.target.className.contains('ember-text-field')) {
+ $(event.target).closest('.dropdown').toggleClass('open');
+ return false;
+ }
}
});