1
0
mirror of synced 2025-02-04 06:09:23 +03:00

Update select2.js

Fixed line 2154 to allow Select2 work with multiple levels hireachal data.
This commit is contained in:
lisandropuzzolo 2012-10-10 12:07:53 -03:00
parent c169bd511f
commit da414577e8

View File

@ -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");