mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix options cache
This commit is contained in:
@@ -313,7 +313,7 @@ jQuery(document).ready(function() {
|
||||
jQuery(document).on('change','select[name="'+parent_option+'"]',function(){
|
||||
var parent = jQuery(this);
|
||||
var form_id = parent.closest('form').find('input[type=hidden][name=form_id]').val();
|
||||
var arr_key = me.attr('name');
|
||||
var arr_key = me.val();
|
||||
|
||||
if( parent.val() != '' && typeof um_select_options_cache[ arr_key ] != 'object' ){
|
||||
|
||||
@@ -354,7 +354,7 @@ jQuery(document).ready(function() {
|
||||
me.find('option[value!=""]').remove();
|
||||
me.val('').trigger('change');
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
jQuery('select[name="'+parent_option+'"]').trigger('change');
|
||||
|
||||
Reference in New Issue
Block a user