This is an automated email from the ASF dual-hosted git repository.
prabhjyotsingh pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new 73f016b AMBARI-22927.Hive View 1.5 Upload Table - not able to change
datatype from the dropdown for a wide file(Venkata Sairam) (#346)
73f016b is described below
commit 73f016b18e2614ff782918e4329c633f0be0c0cd
Author: Venkata Sairam Lanka <[email protected]>
AuthorDate: Wed Feb 14 15:09:22 2018 +0530
AMBARI-22927.Hive View 1.5 Upload Table - not able to change datatype from
the dropdown for a wide file(Venkata Sairam) (#346)
---
.../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
[email protected].