<# (function( $ ) { "use strict"; function convertToWpmuiSelect() { $('.hustle-select').wpmuiSelect({ allowClear: false, minimumResultsForSearch: Infinity, containerCssClass: "hustle-select2", dropdownCssClass: "hustle-select-dropdown", width: "100%" }); $( ".hustle-option--select" ).wpmuiSelect({ allowClear: false, minimumResultsForSearch: Infinity, containerCssClass: "hustle-option--select2", dropdownCssClass: "hustle-option--select2-dropdown" }); } if ( $.isReady ) { //for embedded $(document).on('hustle:module:displayed', convertToWpmuiSelect ); } else { $(document).ready(function() { convertToWpmuiSelect(); }); } }(jQuery)); #> <# } #> <# if( group.type === 'checkboxes' ) { #>