| 1 |
(function( $ ) { |
| 2 |
'use strict'; |
| 3 |
$(function() { |
| 4 |
// Tabs |
| 5 |
$('.catch_widget_settings .nav-tab-wrapper a').on('click', function(e){ |
| 6 |
e.preventDefault(); |
| 7 |
|
| 8 |
if( !$(this).hasClass('ui-state-active') ){ |
| 9 |
$('.nav-tab').removeClass('nav-tab-active'); |
| 10 |
|
| 11 |
$('.wpcatchtab').removeClass('active').fadeOut(0); |
| 12 |
|
| 13 |
$(this).addClass('nav-tab-active'); |
| 14 |
|
| 15 |
var anchorAttr = $(this).attr('href'); |
| 16 |
|
| 17 |
$(anchorAttr).addClass('active').fadeOut(0).fadeIn(500); |
| 18 |
} |
| 19 |
|
| 20 |
}); |
| 21 |
}); |
| 22 |
|
| 23 |
// jQuery Match Height init for sidebar spots |
| 24 |
$(document).ready(function() { |
| 25 |
$('.catch-sidebar-spot .sidebar-spot-inner, .col-2 .catch-lists li, .col-3 .catch-lists li, .catch-modules').matchHeight(); |
| 26 |
}); |
| 27 |
})( jQuery ); |
| 28 |
|