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