|
|
|
@ -28749,6 +28749,19 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
e.stopPropagation(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var enterPopup = false; |
|
|
|
|
|
|
|
|
|
function hide() { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView && self.popupView.element.off("mouseenter." + self.getName()).off("mouseleave." + self.getName()); |
|
|
|
|
enterPopup = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BI.each(evs, function (i, ev) { |
|
|
|
|
switch (ev) { |
|
|
|
|
case "hover": |
|
|
|
@ -28760,11 +28773,18 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
|
enterPopup = true; |
|
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
hide(); |
|
|
|
|
}); |
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
}); |
|
|
|
|
BI.defer(function () { |
|
|
|
|
if (!enterPopup) { |
|
|
|
|
hide(); |
|
|
|
|
} |
|
|
|
|
}, 50); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case "click": |
|
|
|
@ -28810,11 +28830,18 @@ BI.Combo = BI.inherit(BI.Widget, {
|
|
|
|
|
st(e); |
|
|
|
|
}); |
|
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
self._hideView(); |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
} |
|
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
|
enterPopup = true; |
|
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
|
hide(); |
|
|
|
|
}); |
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
}); |
|
|
|
|
BI.defer(function () { |
|
|
|
|
if (!enterPopup) { |
|
|
|
|
hide(); |
|
|
|
|
} |
|
|
|
|
}, 50); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -67626,6 +67653,8 @@ BI.IconCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.combo", |
|
|
|
|
element: this, |
|
|
|
|
direction: o.direction, |
|
|
|
|
trigger: o.trigger, |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: o.adjustLength, |
|
|
|
|
adjustXOffset: o.adjustXOffset, |
|
|
|
|
adjustYOffset: o.adjustYOffset, |
|
|
|
|