From 1d1212c5ed97186dd71c530f905b93c3643755ef Mon Sep 17 00:00:00 2001 From: Streid Date: Fri, 9 Aug 2013 11:30:47 +0300 Subject: [PATCH 1/2] Fix: Not working adaptDropdownCssClass callback. --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index 9b858e18..a9c78520 100644 --- a/select2.js +++ b/select2.js @@ -694,6 +694,8 @@ the specific language governing permissions and limitations under the Apache Lic this.dropdown = this.container.find(".select2-drop"); this.dropdown.addClass(evaluate(opts.dropdownCssClass)); this.dropdown.data("select2", this); + + syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass); this.results = results = this.container.find(resultsSelector); this.search = search = this.container.find("input.select2-input"); From e4c1e061e495efbb48fcf9767887199f665deb67 Mon Sep 17 00:00:00 2001 From: Streid Date: Fri, 9 Aug 2013 11:33:41 +0300 Subject: [PATCH 2/2] Tab to spaces --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index a9c78520..6dc32d08 100644 --- a/select2.js +++ b/select2.js @@ -695,7 +695,7 @@ the specific language governing permissions and limitations under the Apache Lic this.dropdown.addClass(evaluate(opts.dropdownCssClass)); this.dropdown.data("select2", this); - syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass); + syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass); this.results = results = this.container.find(resultsSelector); this.search = search = this.container.find("input.select2-input");