| @@ -1,6 +1,16 @@ | ||
| 1 | 1 | jQuery(document).ready(function(){ |
| 2 | 2 | |
| 3 | + if ( jQuery('#select_user_to_edit_form').length > 0 ) | |
| 4 | + wppb_select_user_to_edit_initialize(); | |
| 5 | + | |
| 6 | +}) | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Handle "Select User To Edit" Field (Edit Profile Form) | |
| 10 | + * | |
| 11 | + * */ | |
| 12 | +function wppb_select_user_to_edit_initialize() { | |
| 3 | 13 | jQuery("select").filter(function() { |
| 4 | 14 | if ( this.id.startsWith( "wppb-" ) && this.id.endsWith( "user-to-edit" ) ) { |
| 5 | 15 | return this; |
| 6 | 16 | } |
| @@ -17,6 +27,5 @@ | ||
| 17 | 27 | jQuery(".wppb-user-to-edit").data("select2").dropdown.$dropdownContainer.css( "z-index", "99999999" ); |
| 18 | 28 | } |
| 19 | 29 | }); |
| 20 | 30 | }) |
| 21 | - | |
| 22 | -}) | |
| 31 | +} | |