mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 15:26:56 +02:00

Before bootstrap-select is loaded, a small JS piece replaces the class for the pickers with the appropriate bootstrap-select classes. If there is no JS, the dropdowns will stay as form-control.
5 lines
195 B
JavaScript
5 lines
195 B
JavaScript
// Filter dropdown styling if JS is enabled
|
|
$(function() {
|
|
$("#navFilter-category, #navFilter-criteria").children("select").removeClass("form-control").addClass("selectpicker show-tick");
|
|
}
|
|
);
|