![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/inc/extensions/meta-box/js/ |
jQuery( document ).ready( function( $ ) { $( '.rw-taxonomy-tree input:checkbox' ).change( function() { var $this = $( this ), $childList = $this.parent().siblings( '.rw-taxonomy-tree' ); if ( $this.is( ':checked' ) ) { $childList.removeClass( 'hidden' ); } else { $childList.find( 'input' ).removeAttr( 'checked' ); $childList.addClass( 'hidden' ); } } ); $( '.rw-taxonomy-tree select' ).change( function() { var $this = $( this ), $childList = $this.siblings( '.rw-taxonomy-tree' ), $value = $this.val(); $childList.removeClass( 'active' ).addClass( 'disabled' ).find( 'select' ).each( function() { $( this ).val( $( 'options:first', this ).val() ).attr( 'disabled', 'disabled' ); } ); $childList.filter( '.the7-mb-taxonomy-' + $value ).removeClass( 'disabled' ).addClass( 'active' ).children( 'select' ).removeAttr( 'disabled' ); } ); } );