Completed
Pull Request — master (#75)
by Maria Daniel Deepak
02:01
created

$(document).ready   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
( function( $ ) {
2
3
	$( document ).ready(function() {
4
		$( '#search_id-search-date-input' ).datepicker({
5
			changeMonth: true,
6
			changeYear: true,
7
			dateFormat: 'yy-mm-dd'
8
		});
9
10
		$( document ).on('click', '#thickbox-footer-close', function( event ) {
11
			event.preventDefault();
12
			tb_remove();
13
		});
14
	});
15
16
	var tabsInsertedEvent = 'tabs_elem_inserted';
17
18
	insertionQ( '#tabs' ).every(function ( element ) {
19
		$( element ).trigger( tabsInsertedEvent )
20
	});
21
22
	$( document ).on( tabsInsertedEvent, function() {
23
		$( '#tabs' ).tabs();
24
	});
25
26
27
})( jQuery );