ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject ambari git commit: AMBARI-10619. Clicking on text area of combo should drop down entries (Richard Zang via srimanth)
Date Tue, 21 Apr 2015 04:34:16 GMT
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 <sgunturi@hortonworks.com>
Authored: Mon Apr 20 21:32:27 2015 -0700
Committer: Srimanth Gunturi <sgunturi@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;
+    }
   }
 
 });


Mime
View raw message