This is an automated email from the ASF dual-hosted git repository.

prabhjyotsingh pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 74b04bc  AMBARI-22927.Hive View 1.5 Upload Table - not able to change 
datatype from the dropdown for a wide file(Venkata Sairam) (#347)
74b04bc is described below

commit 74b04bc4318383dbae3c7bfc40247cf32616edeb
Author: Venkata Sairam Lanka <venkatasairam.la...@gmail.com>
AuthorDate: Wed Feb 14 15:09:29 2018 +0530

    AMBARI-22927.Hive View 1.5 Upload Table - not able to change datatype from 
the dropdown for a wide file(Venkata Sairam) (#347)
---
 .../ui/hive-web/app/components/typeahead-widget.js | 23 +++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git 
a/contrib/views/hive-next/src/main/resources/ui/hive-web/app/components/typeahead-widget.js
 
b/contrib/views/hive-next/src/main/resources/ui/hive-web/app/components/typeahead-widget.js
index 5bc0bda..e60e89d 100644
--- 
a/contrib/views/hive-next/src/main/resources/ui/hive-web/app/components/typeahead-widget.js
+++ 
b/contrib/views/hive-next/src/main/resources/ui/hive-web/app/components/typeahead-widget.js
@@ -46,8 +46,29 @@ export default 
Typeahead.extend(Ember.I18n.TranslateableProperties, {
       currentTypehead.find($('.selectize-input')).append( itemHtml );
 
     }
-  },
 
+    Selectize.prototype.onMouseDown = function(e) {
+
+      var self = this;
+      var defaultPrevented = e.isDefaultPrevented();
+      var $target = $(e.target);
+
+      if (self.isFocused) {
+        if (e.target !== self.$control_input[0]) {
+          if (self.settings.mode === 'single') {
+            self.isOpen ? self.close() : self.open();
+          } else if (!defaultPrevented) {
+            self.setActiveItem(null);
+          }
+          return false;
+        }
+      } else {
+        if (!defaultPrevented) {
+            self.focus();
+        }
+      }
+    };
+  },
   removeExcludedObserver: function () {
     var options = this.get('content');
 

-- 
To stop receiving notification emails like this one, please contact
prabhjyotsi...@apache.org.

Reply via email to