Fix roles dropdown option in fields settings

This commit is contained in:
Ultimate Member
2015-12-24 21:05:23 +02:00
parent 423c47c696
commit 5d16081988
+10
View File
@@ -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();