|
|
@ -219,14 +219,14 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "focus": |
|
|
|
case "click-blur": |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
if (self.combo.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.combo.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
// if (!o.toggle && self.isViewVisible()) {
|
|
|
|
// if (!o.toggle && self.isViewVisible()) {
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
self._popupView(e); |
|
|
|
o.toggle ? self._toggle(e) : self._popupView(e); |
|
|
|
if (self.isViewVisible()) { |
|
|
|
if (self.isViewVisible()) { |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo); |
|
|
|
self.fireEvent(BI.Combo.EVENT_EXPAND); |
|
|
|
self.fireEvent(BI.Combo.EVENT_EXPAND); |
|
|
@ -241,6 +241,7 @@ |
|
|
|
"trailing": false |
|
|
|
"trailing": false |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.element.off("click." + self.getName()).on("click." + self.getName(), function (e) { |
|
|
|
self.element.off("click." + self.getName()).on("click." + self.getName(), function (e) { |
|
|
|
|
|
|
|
debounce(e); |
|
|
|
try { |
|
|
|
try { |
|
|
|
self.element[0].focus(); |
|
|
|
self.element[0].focus(); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
@ -248,10 +249,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
st(e); |
|
|
|
st(e); |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.element.off("focus." + self.getName()).on("focus." + self.getName(), function (e) { |
|
|
|
|
|
|
|
debounce(e); |
|
|
|
|
|
|
|
st(e); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
self.element.off("blur." + self.getName()).on("blur." + self.getName(), function (e) { |
|
|
|
self.element.off("blur." + self.getName()).on("blur." + self.getName(), function (e) { |
|
|
|
self._hideView(e); |
|
|
|
self._hideView(e); |
|
|
|
st(e); |
|
|
|
st(e); |
|
|
@ -576,7 +573,6 @@ |
|
|
|
.unbind("mouseenter." + this.getName()) |
|
|
|
.unbind("mouseenter." + this.getName()) |
|
|
|
.unbind("mousemove." + this.getName()) |
|
|
|
.unbind("mousemove." + this.getName()) |
|
|
|
.unbind("mouseleave." + this.getName()) |
|
|
|
.unbind("mouseleave." + this.getName()) |
|
|
|
.unbind("focus." + this.getName()) |
|
|
|
|
|
|
|
.unbind("blur." + this.getName()); |
|
|
|
.unbind("blur." + this.getName()); |
|
|
|
BI.Resizers.remove(this.getName()); |
|
|
|
BI.Resizers.remove(this.getName()); |
|
|
|
this.popupView && this.popupView._destroy(); |
|
|
|
this.popupView && this.popupView._destroy(); |
|
|
|