mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
- changed form builder > icon field to new dropdown type;
This commit is contained in:
@@ -97,7 +97,14 @@ UM.admin = {
|
||||
select2_atts.dropdownParent = $iconSelector.parents('._heading_text');
|
||||
}
|
||||
|
||||
$iconSelector.select2( select2_atts );
|
||||
$iconSelector.select2( select2_atts ).on( 'change', function () {
|
||||
// handle outdated icons and remove them after select new one.
|
||||
let oldWrapper = $iconSelector.siblings('.um_admin_fonticon_wrapper');
|
||||
if ( oldWrapper.length > 0 ) {
|
||||
oldWrapper.find('#_icon').val( $iconSelector.val() );
|
||||
oldWrapper.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user