Init all select2
This commit is contained in:
parent
990229f3b2
commit
001f586ceb
@ -13,6 +13,16 @@ $(document).ready(function() {
|
||||
// Activate all tooltips
|
||||
$('[data-bs-toggle="tooltip"]').tooltip();
|
||||
|
||||
// Activate select2s
|
||||
$(".select-2").each(function() {
|
||||
var dropdownParent = $(this).attr("data-dropdownparent");
|
||||
$(this).select2({
|
||||
theme: "bootstrap",
|
||||
minimumResultsForSearch: 5,
|
||||
dropdownParent: dropdownParent
|
||||
})
|
||||
});
|
||||
|
||||
// Load theme
|
||||
var theme = localStorage.getItem("theme");
|
||||
if (theme === null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user