mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
- fixed custom callback member directories filters with child dropdown filters;
This commit is contained in:
+16
-5
@@ -658,11 +658,22 @@ jQuery(document).ready(function() {
|
||||
});
|
||||
|
||||
me.select2('destroy');
|
||||
me.select2({
|
||||
data: arr_items,
|
||||
allowClear: true,
|
||||
minimumResultsForSearch: 10
|
||||
});
|
||||
if ( me.hasClass( 'um-s1' ) ) {
|
||||
me.select2({
|
||||
data: arr_items,
|
||||
allowClear: true,
|
||||
dropdownParent: me.parent()
|
||||
});
|
||||
} else if ( me.hasClass( 'um-s2' ) ) {
|
||||
me.select2({
|
||||
data: arr_items,
|
||||
allowClear: true,
|
||||
minimumResultsForSearch: 10,
|
||||
dropdownParent: me.parent()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( data.post.members_directory === 'yes' ) {
|
||||
me.find('option').each( function() {
|
||||
|
||||
Reference in New Issue
Block a user