| 1 |
jQuery(document).ready(function(){ |
| 2 |
|
| 3 |
jQuery("select").filter(function() { |
| 4 |
if ( this.id.startsWith( "wppb-" ) && this.id.endsWith( "user-to-edit" ) ) { |
| 5 |
return this; |
| 6 |
} |
| 7 |
}).on("change", function () { |
| 8 |
window.location.href = jQuery(this).val(); |
| 9 |
}); |
| 10 |
jQuery(function(){ |
| 11 |
jQuery("select").filter(function() { |
| 12 |
if ( this.id.startsWith( "wppb-" ) && this.id.endsWith( "user-to-edit" ) ) { |
| 13 |
return this; |
| 14 |
} |
| 15 |
}).select2().on("select2:open", function(){ |
| 16 |
if( jQuery(".wppb-user-to-edit").parents( ".overlay-container" ).length ){ |
| 17 |
jQuery(".wppb-user-to-edit").data("select2").dropdown.$dropdownContainer.css( "z-index", "99999999" ); |
| 18 |
} |
| 19 |
}); |
| 20 |
}) |
| 21 |
|
| 22 |
}) |