wp_back/wp-content/plugins/metronet-profile-picture/js/mpp-frontend.js
2024-05-20 15:37:46 +03:00

9 lines
331 B
JavaScript

jQuery( document ).ready( function( $ ) {
$( '.mpp-gutenberg-tab' ).on( 'click', function( e ) {
$('.mpp-author-tabs li').removeClass('active');
$(this).addClass('active');
var $tabs = $('.mpp-tab').removeClass('mpp-tab-active');
var new_tab = $(this).data('tab');
$('.' + new_tab).addClass('mpp-tab-active');
} );
} );