@@ -45,14 +45,17 @@ function initAdminLtePlugin() { | |||
checkForm() | |||
}) | |||
if ($('.select2, select.form-control').length) { | |||
$('form .form-widget>select.form-control, .select2').each(function (i, elm) { | |||
setSelect2($(elm)) | |||
if(!$(this).hasClass('disable-select2')) { | |||
setSelect2($(elm)) ; | |||
} | |||
}); | |||
$('form .form-inline>select.form-control').each(function (i, elm) { | |||
setSelect2($(elm)) | |||
if(!$(this).hasClass('disable-select2')) { | |||
setSelect2($(elm)) ; | |||
} | |||
}); | |||
} | |||