From 5d16081988cd0c28b740001c1bcc616a3b99ccbb Mon Sep 17 00:00:00 2001 From: Ultimate Member Date: Thu, 24 Dec 2015 21:05:23 +0200 Subject: [PATCH] Fix roles dropdown option in fields settings --- admin/assets/js/um-admin-scripts.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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();