From 90998d8442e3602220cbcd6157225f730df640b6 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 8 Feb 2013 12:21:06 -0800 Subject: [PATCH] fire open event after the drop has been opened --- select2.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/select2.js b/select2.js index f581ae0a..d0f69c01 100644 --- a/select2.js +++ b/select2.js @@ -998,7 +998,7 @@ the specific language governing permissions and limitations under the Apache Lic if (this.opened()) return false; - event = $.Event("open"); + event = $.Event("opening"); this.opts.element.trigger(event); return !event.isDefaultPrevented(); }, @@ -1520,6 +1520,8 @@ the specific language governing permissions and limitations under the Apache Lic opening: function () { this.parent.opening.apply(this, arguments); this.focusser.attr("disabled", "disabled"); + + this.opts.element.trigger($.Event("open")); }, // single @@ -2117,6 +2119,8 @@ the specific language governing permissions and limitations under the Apache Lic this.clearPlaceholder(); this.resizeSearch(); this.focusSearch(); + + this.opts.element.trigger($.Event("open")); }, // multi