# catch-gallery/1.2/admin/js/admin.js

Catch Gallery, version 1.2. 28 lines.

- Page: https://pluginprobe.com/plugins/catch-gallery/1.2/code/admin/js/admin.js
- Raw: https://pluginprobe.com/plugins/catch-gallery/1.2/raw/admin/js/admin.js
- Modified: 2019-02-22T04:42:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/catch-gallery/1.2/code/admin/js/admin.js#L10-L20`.

```javascript
(function( $ ) {
	'use strict';
	$(function() {
		// Tabs
		$('.catch_widget_settings .nav-tab-wrapper a').on('click', function(e){
			e.preventDefault();

			if( !$(this).hasClass('ui-state-active') ){
				$('.nav-tab').removeClass('nav-tab-active');

				$('.wpcatchtab').removeClass('active').fadeOut(0);

				$(this).addClass('nav-tab-active');

				var anchorAttr = $(this).attr('href');

				$(anchorAttr).addClass('active').fadeOut(0).fadeIn(500);
			}

		});
	});

	// jQuery Match Height init for sidebar spots
    $(document).ready(function() {
        $('.catch-sidebar-spot .sidebar-spot-inner, .col-2 .catch-lists li, .col-3 .catch-lists li, .catch-modules').matchHeight();
    });
})( jQuery );

```
