diff --git a/admin/assets/js/um-admin-scripts.js b/admin/assets/js/um-admin-scripts.js index bc0ec141..0ef0000b 100644 --- a/admin/assets/js/um-admin-scripts.js +++ b/admin/assets/js/um-admin-scripts.js @@ -106,6 +106,11 @@ jQuery(document).ready(function() { if (jQuery(this).val() == jQuery(this).data('cond1') ){ jQuery('.' + jQuery(this).data('cond1-show') ).show(); jQuery('.' + jQuery(this).data('cond1-hide') ).hide(); + + if ( jQuery(this).data('cond1-show') == '_roles' ) { + return false; + } + } else { jQuery('.' + jQuery(this).data('cond1-show') ).hide(); jQuery('.' + jQuery(this).data('cond1-hide') ).show(); @@ -116,6 +121,11 @@ jQuery(document).ready(function() { if (jQuery(this).val() == jQuery(this).data('cond2') ){ jQuery('.' + jQuery(this).data('cond2-show') ).show(); jQuery('.' + jQuery(this).data('cond2-hide') ).hide(); + + if ( jQuery(this).data('cond2-show') == '_roles' ) { + return false; + } + } else { jQuery('.' + jQuery(this).data('cond2-show') ).hide(); jQuery('.' + jQuery(this).data('cond2-hide') ).show();