Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -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);