Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

31 lines
719 B
JavaScript

/**
* Tab navigation for shortcode generator
*/
(function ($) {
'use strict';
$(document).ready(function(){
$('div.sp-pc-mbf-nav a').click(function(){
var tab_id = $(this).attr('data-tab');
$('.sp-pc-mbf-nav a').removeClass('nav-tab-active');
$('.sp-pc-mbf-tab-content').removeClass('nav-tab-active');
$(this).addClass('nav-tab-active');
$("#"+tab_id).addClass('nav-tab-active');
})
});
// Initializing WP Color Picker
$('.sp-pc-color-picker').each(function(){
$(this).wpColorPicker();
});
$('.sp-pc-select').chosen({
width: '100%',
allow_single_deselect: true
});
})(jQuery);