From da414577e8cd52470c16860e3e8c26a2577a8bc8 Mon Sep 17 00:00:00 2001 From: lisandropuzzolo Date: Wed, 10 Oct 2012 12:07:53 -0300 Subject: [PATCH] Update select2.js Fixed line 2154 to allow Select2 work with multiple levels hireachal data. --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index a82ae81e..29dbb640 100644 --- a/select2.js +++ b/select2.js @@ -2151,7 +2151,7 @@ the specific language governing permissions and limitations under the Apache Lic }); compound.each2(function(i, e) { - if (e.find(".select2-result-selectable").length==0) { + if (!e.is('.select2-result-selectable') && e.find(".select2-result-selectable").length==0) { // FIX FOR HIRECHAL DATA e.addClass("select2-disabled"); } else { e.removeClass("select2-disabled");